Path Members
The following tables list the members exposed by the Path type.
Public Fields
Name | Description | |
---|---|---|
DirectorySeparatorChar | Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization. | |
InvalidPathChars | Provides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the Path class. |
Public Methods
Name | Description | |
---|---|---|
ChangeExtension | Changes the extension of a path string. | |
Combine | Combines two path strings. | |
GetDirectoryName | Returns the directory information for the specified path string. | |
GetExtension | Returns the extension of the specified path string. | |
GetFileName | Returns the file name and extension of the specified path string. | |
GetFileNameWithoutExtension | Returns the file name of the specified path string without the extension. | |
GetFullPath | Returns the absolute path for the specified path string. | |
GetInvalidPathChars | Gets an array containing the characters that are not allowed in path names. | |
GetPathRoot | Gets the root directory information of the specified path. | |
HasExtension | Determines whether a path includes a file name extension. | |
IsPathRooted | Gets a value indicating whether the specified path string contains absolute or relative path information. |