![]()
The string returned by Path.GetFileName(string), minus the last period (.) and all characters following it.
Type Reason ArgumentException path contains one or more implementation-specific invalid characters.
This method does not verify that the path or file name exists.
For a list of common I/O tasks, see Common I/O Tasks.