NAnt SDK Documentation - v0.92 |
|
PathFunctions.GetExtension Method
Returns the extension for the specified path string.
[Visual Basic]
<Function(Name:="get-extension")>
Public Shared Function GetExtension( _
ByVal
path As
String _
) As
String
[C#]
[Function(Name="get-extension")]
public static
string GetExtension(
string path);
Parameters
-
path
- The path string from which to get the extension.
Return Value
A String containing the extension of the specified path (including the "."), or an empty String if path does not have extension information.
Exceptions
Exception Type |
Condition |
ArgumentException
|
path contains one or more invalid characters. |
See Also
PathFunctions Class | NAnt.Core.Functions Namespace