Path Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Performs operations on String instances that contain file or directory path information. These operations are performed in a cross-platform manner.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

public ref class Path sealed

The Path type exposes the following members.

  NameDescription
Public methodStatic memberChangeExtensionChanges the extension of a path string.
Public methodStatic memberCombineCombines two strings into a path.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberGetDirectoryNameReturns the directory information for the specified path string.
Public methodStatic memberGetExtensionReturns the extension of the specified path string.
Public methodStatic memberGetFileNameReturns the file name and extension of the specified path string.
Public methodStatic memberGetFileNameWithoutExtensionReturns the file name of the specified path string without the extension.
Public methodStatic memberGetFullPathReturns the absolute path for the specified path string.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodStatic memberGetInvalidPathCharsGets an array containing the characters that are not allowed in path names.
Public methodStatic memberGetPathRootGets the root directory information of the specified path.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberHasExtensionDetermines whether a path includes a file name extension.
Public methodStatic memberIsPathRootedGets a value indicating whether the specified path string contains a root.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldStatic memberDirectorySeparatorCharProvides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Public fieldStatic memberInvalidPathCharsProvides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the Path class.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: