The following tables list the members exposed by the Directory type.

Name Description
Public method Static CreateDirectory(string) Create a directory
Public method Static Delete(string) Delete a directory
Public method Static Delete(string, bool) Delete a directory
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Public method Static Exists(string) Does a directory exist?
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method Static GetDirectories(string) Get all sub directories
Public method Static GetFileInfos(string, string, SearchOption) Get all files in a directory
Public method Static GetFiles(string) Get all the files under a path
Public method Static GetFiles(string, string, SearchOption) Get all files in a directory
Public method Static GetFiles(string, string)
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method Static GetParent(string)
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method Static Move(string, string) Move a directory
Public method ToString Returns a string that represents the current object. (inherited from Object).
Top