Path Class |
public sealed class Path
The Path type exposes the following members.
| Name | Description | |
|---|---|---|
| ChangeExtension | Changes the extension of the specified path string. | |
| ChangeExtention | Obsolete. Changes the extension of the specified path string. | |
| Combine | Combines two path strings. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetDirectoryName | Returns the directory information from the specified path string. | |
| GetExtension | Returns the extension of the specified path. | |
| GetExtention | Obsolete. Returns the extension of the specified path. | |
| GetFileName | Returns the file name and extension of the specified path. | |
| GetFileNameWithExtension | Returns the file name and extension of the specified path. | |
| GetFileNameWithoutExtension | Returns the file name without the extension of the specified path. | |
| GetFreeSpace | Function to return the number of bytes available on the drive of the specified path. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetInvalidPathChars | Gets an array that contains the characters not allowed in path names. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| HasExtension | Determines whether a path contains a file name extension. | |
| IsPathRooted |
Gets a value indicating whether the specified path string contains absolute or relative path information.
Note, absolute paths are expected for operations like opening or creating a file in the File class. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| AltDirectorySeparatorChar | Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization. | |
| DirectorySeparatorChar | Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization. | |
| PathSeparator | A platform-specific separator character used to separate path strings in environment variables. | |
| VolumeSeparatorChar | Provides a platform-specific volume separator character. |