Click or drag to resize

DirectoryName Methods

The DirectoryName type exposes the following members.

Methods
 NameDescription
Public methodCombine(DirectoryName) Combines this directory name with a relative path.
Public methodCombine(FileName) Combines this directory name with a relative path.
Public methodCombineDirectory Combines this directory name with a relative path.
Public methodCombineFile Combines this directory name with a relative path.
Public methodStatic memberCreate(DirectoryName) Returns the specified directory name instance.
Obsolete
Public methodStatic memberCreate(String) Creates a DirectoryName instance from the string. It is valid to pass null or an empty string to this method (in that case, a null reference will be returned).
Public methodEquals(DirectoryName) Determines whether this instance and another directory name are equal.
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Public methodExists Returns true if this directory exists in the file system.
(Overrides PathNameExists)
Public methodGetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
Public methodGetParentDirectory Gets the directory name.
(Inherited from PathName)
Public methodGetRelativePath(DirectoryName) Converts the specified absolute path into a relative path (relative to this).
Public methodGetRelativePath(FileName) Converts the specified absolute path into a relative path (relative to this).
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from PathName)
Public methodToStringWithTrailingBackslash Gets the directory name as a string, including a trailing backslash.
Top
See Also