Path Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The Path type exposes the following members.
| Name | Description | |
|---|---|---|
|
ChangeExtension | Changes the extension of a path string. |
|
Combine(String()) | Combines an array of strings into a path. |
|
Combine(String, String) | 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. |
|
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. |
|
GetPathRoot | Gets the root directory information of the specified path. |
|
GetRandomFileName | Returns a random folder name or file name. |
|
GetTempFileName | Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file. |
|
GetTempPath | Returns the path of the current system's temporary folder. |
|
HasExtension | Determines whether a path includes a file name extension. |
|
IsPathRooted | Gets a value indicating whether the specified path string contains a root. |
Show: