Click or drag to resize

FileGetCreationTime Method

Returns the data and time the specified file was created.

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

Parameters

path  String
File to query.

Return Value

DateTime
A DateTime object populated with the creation 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