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

PathFunctions.GetFileNameWithoutExtension Method 

[This is preliminary documentation and subject to change.]

Returns the filename without extension for the specified path string.

[Visual Basic]
<Function(Name:="get-file-name-without-extension")>
Public Shared Function GetFileNameWithoutExtension( _
   ByVal path As String _
) As String
[C#]
[Function(Name="get-file-name-without-extension")]
public static string GetFileNameWithoutExtension(
   string path
);

Parameters

path
The path of the file.

Return Value

A String containing the String returned by GetFileName, minus the last period (.) and all characters following it.

Remarks

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

Exceptions

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

See Also

PathFunctions Class | NAnt.Core.Functions Namespace