Share via


Path Members

The following tables list the members exposed by the Path type.

Public Fields

Name Description
Public Field Static DirectorySeparatorChar Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Public Field Static InvalidPathChars Provides a platform-specific array of characters that cannot be specified in path string arguments passed to members of the Path class.

Public Methods

Name Description
Public Method Static ChangeExtension Changes the extension of a path string.
Public Method Static Combine Combines two path strings.
Public Method Static GetDirectoryName Returns the directory information for the specified path string.
Public Method Static GetExtension Returns the extension of the specified path string.
Public Method Static GetFileName Returns the file name and extension of the specified path string.
Public Method Static GetFileNameWithoutExtension Returns the file name of the specified path string without the extension.
Public Method Static GetFullPath Returns the absolute path for the specified path string.
Public Method Static GetInvalidPathChars Gets an array containing the characters that are not allowed in path names.
Public Method Static GetPathRoot Gets the root directory information of the specified path.
Public Method Static HasExtension Determines whether a path includes a file name extension.
Public Method Static IsPathRooted Gets a value indicating whether the specified path string contains absolute or relative path information.

See Also

Reference

Path Class
System.IO Namespace