NAnt SDK Documentation - v0.92

DirectoryFunctions.GetCreationTime Method 

Returns the creation date and time of the specified directory.

[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 directory for which to obtain creation date and time information.

Return Value

The creation date and time of the specified directory.

Exceptions

Exception Type Condition
IOException The specified directory 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.

See Also

DirectoryFunctions Class | NAnt.Core.Functions Namespace