NAnt SDK Documentation - v0.85-nightly-2005-11-09

PathFunctions.GetExtension Method 

[This is preliminary documentation and subject to change.]

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.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.PathFunctions.GetExtension(System.String)

Exceptions

Exception Type Condition
ArgumentException path contains one or more invalid characters.

See Also

PathFunctions Class | NAnt.Core.Functions Namespace