DirectoryInfo Methods
.NET Framework 2.0
| Name | Description | |
|---|---|---|
| Create | Overloaded. Creates a directory. |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
| CreateSubdirectory | Overloaded. Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. |
| Delete | Overloaded. Overridden. Deletes a DirectoryInfo and its contents from a path. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetAccessControl | Overloaded. Gets the access control list (ACL) entries for the current directory. |
| GetDirectories | Overloaded. Returns the subdirectories of the current directory. |
| GetFiles | Overloaded. Returns a file list from the current directory. |
| GetFileSystemInfos | Overloaded. Retrieves an array of strongly typed FileSystemInfo objects representing files and subdirectories of the current directory. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetObjectData | Sets the SerializationInfo object with the file name and additional exception information. (Inherited from FileSystemInfo.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| MoveTo | Moves a DirectoryInfo instance and its contents to a new path. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| Refresh | Refreshes the state of the object. (Inherited from FileSystemInfo.) |
| SetAccessControl | Applies access control list (ACL) entries described by a DirectorySecurity object to the directory described by the current DirectoryInfo object. |
| ToString | Overridden. Returns the original path that was passed by the user. |