Directory |
[TypeConverterAttribute(typeof(DirectoryNameConverter))] public sealed class DirectoryName : PathName
The DirectoryName type exposes the following members.
| Name | Description | |
|---|---|---|
| DirectoryName(DirectoryName) | Obsolete. Initializes a new instance of the DirectoryName class | |
| 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) | 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) | ||
| Equals(Object) | (Overrides ObjectEquals(Object)) | |
| Exists |
Returns true if this directory exists in the file system.
(Overrides PathNameExists) | |
| GetHashCode | (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 | (Inherited from PathName) | |
| ToStringWithTrailingBackslash | Gets the directory name as a string, including a trailing backslash. |