Click or drag to resize

FileGetLastAccessTime Method

Returns the data and time the specified file 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
File 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 file.
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