DirectoryInfo Methods
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
The DirectoryInfo type exposes the following members.
Methods
Name | Description | |
---|---|---|
Create | When it is called by trusted applications, creates a directory. | |
CreateSubdirectory | When it is called by trusted applications, creates a subdirectory or subdirectories on the specified path. | |
Delete() | When it is called by trusted applications, deletes this DirectoryInfo if it is empty. (Overrides FileSystemInfo.Delete().) | |
Delete(Boolean) | When it is called by trusted applications, deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files. | |
EnumerateDirectories() | When it is called by trusted applications, returns an enumerable collection of directory information in the current directory. | |
EnumerateDirectories(String) | When it is called by trusted applications, returns an enumerable collection of directory information that matches a specified search pattern. | |
EnumerateDirectories(String, SearchOption) | When it is called by trusted applications, returns an enumerable collection of directory information that matches a specified search pattern and search subdirectory option. | |
EnumerateFiles() | When it is called by trusted applications, returns an enumerable collection of file information in the current directory. | |
EnumerateFiles(String) | When it is called by trusted applications, returns an enumerable collection of file information that matches a search pattern. | |
EnumerateFiles(String, SearchOption) | When it is called by trusted applications, returns an enumerable collection of file information that matches a specified search pattern and search subdirectory option. | |
EnumerateFileSystemInfos() | When it is called by trusted applications, returns an enumerable collection of file system information in the current directory. | |
EnumerateFileSystemInfos(String) | When it is called by trusted applications, returns an enumerable collection of file system information that matches a specified search pattern. | |
EnumerateFileSystemInfos(String, SearchOption) | When it is called by trusted applications, 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.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetDirectories() | Security Critical. Returns the subdirectories of the current directory. | |
GetDirectories(String) | Security Critical. Returns an array of directories in the current DirectoryInfo matching the given search criteria. | |
GetFiles() | Security Critical. Returns a file list from the current directory. | |
GetFiles(String) | Security Critical. Returns a file list from the current directory matching the given searchPattern. | |
GetFileSystemInfos() | Security Critical. Returns an array of strongly typed FileSystemInfo entries representing all the files and subdirectories in a directory. | |
GetFileSystemInfos(String) | Security Critical. Retrieves an array of strongly typed FileSystemInfo objects representing the files and subdirectories matching the specified search criteria. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveTo | When it is called by trusted applications, moves a DirectoryInfo instance and its contents to a new path. | |
Refresh | Refreshes the state of the object. (Inherited from FileSystemInfo.) | |
ToString | Returns the original path that was passed by the user. (Overrides Object.ToString().) |
Top