Click or drag to resize

DirectoryGetLastWriteTime Method

Returns the data and time the specified directory was last written to.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static DateTime GetLastWriteTime(
	string path
)

Parameters

path  String
Directory to query.

Return Value

DateTime
A DateTime object populated with the last write time of the specified path.
Exceptions
ExceptionCondition
InvalidDirectoryLocationExceptionInvalid path specified.
PathTooLongExceptionThe specified path is greater than 248 characters.
UnauthorizedAccessExceptionUser does not have the require permissions to this directory.
ArgumentExceptionThe specified path contains invalid characters.
ArgumentNullExceptionThe specified path is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also