Directory |
public sealed class DirectoryInfo : FileSystemInfo
The DirectoryInfo type exposes the following members.
| Name | Description | |
|---|---|---|
| DirectoryInfo | Initialize the DirectoryInfo class with the specified path. |
| Name | Description | |
|---|---|---|
| Attributes |
Gets or sets the FileAttributes of the current object.
(Overrides FileSystemInfoAttributes) | |
| CreationTime |
Gets the creation time of the current object.
(Overrides FileSystemInfoCreationTime) | |
| Exists |
Determines if the current directory exists on the system.
(Overrides FileSystemInfoExists) | |
| Extension |
Gets the string representing the extension part of the file.
(Overrides FileSystemInfoExtension) | |
| FullName |
Return the full path of the Directory
(Overrides FileSystemInfoFullName) | |
| LastAccessTime |
Gets or sets the time the current file or directory was last accessed.
(Overrides FileSystemInfoLastAccessTime) | |
| LastWriteTime |
Gets or sets the time when the current file or directory was last written to.
(Overrides FileSystemInfoLastWriteTime) | |
| Name |
Return the name of the current directory.
(Overrides FileSystemInfoName) | |
| Parent | Get the instance of the Parent Directory. | |
| Root | Get the instance of the root directory. |
| Name | Description | |
|---|---|---|
| Create | Create the current directory. | |
| CreateSubdirectory | Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. | |
| Delete |
Delete the current directory.
(Overrides FileSystemInfoDelete) | |
| Delete(Boolean) | Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetDirectories | Return the subdirectories of the current instance. | |
| GetDirectories(String) | Return the subdirectories of the current instance that match the specified search pattern. | |
| GetFiles | Return the files of the current directory. | |
| GetFiles(String) | Return the files of the current directory that match the specified search pattern. | |
| GetFileSystemInfos | Returns an array of strongly typed FileSystemInfo entries representing all the files and subdirectories in a directory. | |
| GetFileSystemInfos(String) | Retrieves an array of strongly typed FileSystemInfo objects representing the files and subdirectories matching the specified search criteria. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MoveTo | Moves the specified directory and contents to the destination location. | |
| Refresh |
Refreshes the state of the object.
(Overrides FileSystemInfoRefresh) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |