Directory |
[TypeConverterAttribute(typeof(DirectoryNameConverter))] public sealed class DirectoryName : PathName
The DirectoryName type exposes the following members.
| Name | Description | |
|---|---|---|
| DirectoryName(DirectoryName) |
Initializes a new instance of the DirectoryName class from an existing directory name.
Obsolete | |
| DirectoryName(String) | Initializes a new instance of the DirectoryName class. |
| Name | Description | |
|---|---|---|
| IsRelative |
Gets whether this path is relative.
(Inherited from PathName) |
| Name | Description | |
|---|---|---|
| Combine(DirectoryName) | Combines this directory name with a relative path. | |
| Combine(FileName) | Combines this directory name with a relative path. | |
| CombineDirectory | Combines this directory name with a relative path. | |
| CombineFile | Combines this directory name with a relative path. | |
| Create(DirectoryName) |
Returns the specified directory name instance.
Obsolete | |
| Create(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). | |
| Equals(DirectoryName) | Determines whether this instance and another directory name are equal. | |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object)) | |
| Exists |
Returns true if this directory exists in the file system.
(Overrides PathNameExists) | |
| GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode) | |
| GetParentDirectory |
Gets the directory name.
(Inherited from PathName) | |
| GetRelativePath(DirectoryName) | Converts the specified absolute path into a relative path (relative to this). | |
| GetRelativePath(FileName) | Converts the specified absolute path into a relative path (relative to this). | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from PathName) | |
| ToStringWithTrailingBackslash | Gets the directory name as a string, including a trailing backslash. |
| Name | Description | |
|---|---|---|
| Equality(DirectoryName, DirectoryName) | Determines whether two directory names are equal. | |
| Equality(DirectoryName, String) |
Determines whether a directory name and a string path are equal.
Obsolete | |
| Equality(String, DirectoryName) |
Determines whether a string path and a directory name are equal.
Obsolete | |
| (DirectoryName to String) | Converts a DirectoryName to its string path. | |
| Inequality(DirectoryName, DirectoryName) | Determines whether two directory names are not equal. | |
| Inequality(DirectoryName, String) |
Determines whether a directory name and a string path are not equal.
Obsolete | |
| Inequality(String, DirectoryName) |
Determines whether a string path and a directory name are not equal.
Obsolete |