DirectoryInfo Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The DirectoryInfo type exposes the following members.
| Name | Description | |
|---|---|---|
|
Create | Creates a directory. |
|
CreateSubdirectory | Creates a subdirectory or subdirectories on the specified path. |
|
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. |
|
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() | Returns the subdirectories of the current directory. |
|
GetDirectories(String) | Returns an array of directories in the current DirectoryInfo matching the given search criteria. |
|
GetFiles() | Returns a file list from the current directory. |
|
GetFiles(String) | Returns a file list from the current directory matching the given searchPattern. |
|
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 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 | 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().) |
Show: