Export (0) Print
Expand All

Path Methods

The Path type exposes the following members.

  NameDescription
Public method Static member ChangeExtension Changes the extension of a path string.
Public method Static member Combine(String[]) Combines an array of strings into a path.
Public method Static member Combine(String, String) Combines two strings into a path.
Public method Static member Combine(String, String, String) Combines three strings into a path.
Public method Static member Combine(String, String, String, String) Combines four strings into a path.
Public method Static member GetDirectoryName Returns the directory information for the specified path string.
Public method Static member GetExtension Returns the extension of the specified path string.
Public method Static member GetFileName Returns the file name and extension of the specified path string.
Public method Static member GetFileNameWithoutExtension Returns the file name of the specified path string without the extension.
Public method Static member GetFullPath Returns the absolute path for the specified path string.
Public method Static member GetInvalidFileNameChars Gets an array containing the characters that are not allowed in file names.
Public method Static member GetInvalidPathChars Gets an array containing the characters that are not allowed in path names.
Public method Static member GetPathRoot Gets the root directory information of the specified path.
Public method Static member GetRandomFileName Returns a random folder name or file name.
Public method Static member GetTempFileName Creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file.
Public method Static member GetTempPath Returns the path of the current user's temporary folder.
Public method Static member HasExtension Determines whether a path includes a file name extension.
Public method Static member IsPathRooted Gets a value indicating whether the specified path string contains a root.
Top

Community Additions

ADD
Show:
© 2014 Microsoft