Returns the file base component of the specified path string without the extension.
- path
- A string containing the path of the file.
A string consisting of the string returned by Path.GetFileName(string) , minus the implementation-specific extension separator character and extension. Platforms that do not support this feature return path unmodified.
Type Reason ArgumentException path contains one or more implementation-specific invalid characters.
Note: For additional details, see Path.GetFileName(string).
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0