Click or drag to resize

PathName Methods

The PathName type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreateFromExisting Creates a path from a name that could be a file or a folder name. If a file with the given name exists in the file system, it is decided that this is a file name, and a FileName is returned. If a folder with the given name exists in the file system, then it is decided that this is a folder, and a DirectoryName is returned. If neither of the two cases above applies, null is returned.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExists Returns true if this directory exists in the file system.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetParentDirectory Gets the directory name.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString
(Overrides ObjectToString)
Public methodStatic memberToStringPath 
Top
See Also