Click or drag to resize

Path Methods

The Path type exposes the following members.

Methods
 NameDescription
Public methodStatic memberChangeExtension Changes the extension of the specified path string.
Public methodStatic memberChangeExtentionObsolete.
Changes the extension of the specified path string.
Public methodStatic memberCombine Combines two path strings.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodStatic memberGetDirectoryName Returns the directory information from the specified path string.
Public methodStatic memberGetExtension Returns the extension of the specified path.
Public methodStatic memberGetExtentionObsolete.
Returns the extension of the specified path.
Public methodStatic memberGetFileName Returns the file name and extension of the specified path.
Public methodStatic memberGetFileNameWithExtension Returns the file name and extension of the specified path.
Public methodStatic memberGetFileNameWithoutExtension Returns the file name without the extension of the specified path.
Public methodStatic memberGetFreeSpace Function to return the number of bytes available on the drive of the specified path.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetInvalidPathChars Gets an array that contains the characters not allowed in path names.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberHasExtension Determines whether a path contains a file name extension.
Public methodStatic memberIsPathRooted Gets a value indicating whether the specified path string contains absolute or relative path information.
Remarks
Note, absolute paths are expected for operations like opening or creating a file in the File class.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also