NAnt SDK Documentation - v0.92

PathFunctions.GetFullPath Method 

Returns the fully qualified path.

[Visual Basic]
<Function(Name:="get-full-path")>
Public Function GetFullPath( _
   ByVal path As String _
) As String
[C#]
[Function(Name="get-full-path")]
public string GetFullPath(
   string path
);

Parameters

path
The file or directory for which to obtain absolute path information.

Return Value

A string containing the fully qualified location of path, such as "C:\MyFile.txt".

Exceptions

Exception Type Condition
ArgumentException path is a zero-length string, contains only white space, or contains one or more invalid characters.
NotSupportedException path contains a colon (":").
PathTooLongException The specified path, file name, or both exceed the system-defined maximum length.

See Also

PathFunctions Class | NAnt.Core.Functions Namespace