| Path Class |
Namespace: System.IO
public static class Path
The Path type exposes the following members.
| Name | Description | |
|---|---|---|
| Combine(String) | Combines an array of strings into a path. | |
| Combine(String, String) | Combines two strings into a path. | |
| Combine(String, String, String) | Combines three strings into a path. | |
| Combine(String, String, String, String) | Combines four strings into a path. | |
| 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. | |
| GetInvalidFileNameChars | Gets an array containing the characters that are not allowed in file names. | |
| GetInvalidPathChars | Gets an array containing the characters that are not allowed in path names. | |
| IsPathRooted | Gets a value indicating whether the specified path string contains a root. |
| 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. | |
| InvalidPathChars | Provides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the Path class. | |
| PathSeparator | A platform-specific separator character used to separate path strings in environment variables. | |
| VolumeSeparatorChar | Provides a platform-specific volume separator character. |