Click or drag to resize

DirectoryGetLastAccessTime Method

Returns the data and time the specified directory was last accessed.

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

Parameters

path  String
Directory to query.

Return Value

DateTime
A DateTime object populated with the last access 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.
NotSupportedExceptionThe system does not support this operation.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also