C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System.IO
Path Class
Path Methods
Combine Method
GetDirectoryName Method
GetExtension Method
GetFileName Method
GetFileNameWithoutExtension Method
GetFullPath Method
GetInvalidFileNameChars Method
GetInvalidPathChars Method
IsPathRooted Method
Path
GetFileNameWithoutExtension Method
Returns the file name of the specified path string without the extension.
Namespace:
System.IO
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
string
GetFileNameWithoutExtension
(
string
path
)
Parameters
path
Type:
System
String
The path of the file.
Return Value
Type:
String
The string returned by
GetFileName(String)
, minus the last period (.) and all characters following it.
Exceptions
Exception
Condition
ArgumentException
path
contains one or more of the invalid characters defined in
GetInvalidPathChars
.
See Also
Reference
Path Class
System.IO Namespace