NAnt SDK Documentation - v0.92

FileFunctions.GetCreationTime Method 

Returns the creation date and time of the specified file.

[Visual Basic]
<Function(Name:="get-creation-time")>
Public Function GetCreationTime( _
   ByVal path As String _
) As Date
[C#]
[Function(Name="get-creation-time")]
public DateTime GetCreationTime(
   string path
);

Parameters

path
The file for which to obtain creation date and time information.

Return Value

The creation date and time of the specified file.

Exceptions

Exception Type Condition
IOException The specified file does not exist.
ArgumentException path is a zero-length string, contains only white space, or contains one or more invalid characters.
PathTooLongException The specified path, file name, or both exceed the system-defined maximum length.
NotSupportedException The path parameter is in an invalid format.

See Also

FileFunctions Class | NAnt.Core.Functions Namespace