NAnt SDK Documentation - v0.92 |
|
PathFunctions.GetFileNameWithoutExtension Method
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.
Exceptions
Exception Type |
Condition |
ArgumentException
|
path contains one or more invalid characters. |
See Also
PathFunctions Class | NAnt.Core.Functions Namespace