DirectoryInfo Methods
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | Create() | Creates a directory. |
![]() | Create(DirectorySecurity) | Creates a directory using a DirectorySecurity object. |
![]() | CreateObjRef(Type) | 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(String) | Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class. |
![]() | CreateSubdirectory(String, DirectorySecurity) | Creates a subdirectory or subdirectories on the specified path with the specified security. The specified path can be relative to this instance of the DirectoryInfo class. |
![]() | Delete() | Deletes this DirectoryInfo if it is empty.(Overrides FileSystemInfo.Delete().) |
![]() | Delete(Boolean) | Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files. |
![]() | EnumerateDirectories() | Returns an enumerable collection of directory information in the current directory. |
![]() | EnumerateDirectories(String) | Returns an enumerable collection of directory information that matches a specified search pattern. |
![]() | EnumerateDirectories(String, SearchOption) | Returns an enumerable collection of directory information that matches a specified search pattern and search subdirectory option. |
![]() | EnumerateFiles() | Returns an enumerable collection of file information in the current directory. |
![]() | EnumerateFiles(String) | Returns an enumerable collection of file information that matches a search pattern. |
![]() | EnumerateFiles(String, SearchOption) | Returns an enumerable collection of file information that matches a specified search pattern and search subdirectory option. |
![]() | EnumerateFileSystemInfos() | Returns an enumerable collection of file system information in the current directory. |
![]() | EnumerateFileSystemInfos(String) | Returns an enumerable collection of file system information that matches a specified search pattern. |
![]() | EnumerateFileSystemInfos(String, SearchOption) | Returns an enumerable collection of file system information that matches a specified search pattern and search subdirectory option. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetAccessControl() | Gets a DirectorySecurity object that encapsulates the access control list (ACL) entries for the directory described by the current DirectoryInfo object. |
![]() | GetAccessControl(AccessControlSections) | Gets a DirectorySecurity object that encapsulates the specified type of access control list (ACL) entries for the directory described by the current DirectoryInfo object. |
![]() | GetDirectories() | Returns the subdirectories of the current directory. |
![]() | GetDirectories(String) | Returns an array of directories in the current DirectoryInfo matching the given search criteria. |
![]() | GetDirectories(String, SearchOption) | Returns an array of directories in the current DirectoryInfo matching the given search criteria and using a value to determine whether to search subdirectories. |
![]() | GetFiles() | Returns a file list from the current directory. |
![]() | GetFiles(String) | Returns a file list from the current directory matching the given search pattern. |
![]() | GetFiles(String, SearchOption) | Returns a file list from the current directory matching the given search pattern and using a value to determine whether to search subdirectories. |
![]() | 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 that match the specified search criteria. |
![]() | GetFileSystemInfos(String, SearchOption) | Retrieves an array of FileSystemInfo objects that represent the files and subdirectories matching the specified search criteria. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetObjectData(SerializationInfo, StreamingContext) | Sets the SerializationInfo object with the file name and additional exception information.(Inherited from FileSystemInfo.) |
![]() | GetType() | |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | MoveTo(String) | Moves a DirectoryInfo instance and its contents to a new path. |
![]() | Refresh() | Refreshes the state of the object.(Inherited from FileSystemInfo.) |
![]() | SetAccessControl(DirectorySecurity) | Applies access control list (ACL) entries described by a DirectorySecurity object to the directory described by the current DirectoryInfo object. |
![]() | ToString() | Returns the original path that was passed by the user.(Overrides Object.ToString().) |
