DirectoryInfo Methods

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The DirectoryInfo type exposes the following members.

  Name Description
Public method Create Creates a directory.
Public method CreateSubdirectory Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class.
Public method Delete()()()() Deletes this DirectoryInfo if it is empty. (Overrides FileSystemInfo..::..Delete()()()().)
Public method Delete(Boolean) Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetDirectories Returns the subdirectories of the current directory.
Public method GetFiles Returns a file list from the current directory.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method MoveTo Moves a DirectoryInfo instance and its contents to a new path.
Public method Refresh Refreshes the state of the object. (Inherited from FileSystemInfo.)
Public method ToString Returns the original path that was passed by the user. (Overrides Object..::..ToString()()()().)