Namespace: Contracts.IO
Assembly: Contracts (in Contracts.dll)

Public Class Directory
This language is not supported or no code example is available.
public static class Directory
This language is not supported or no code example is available.
public ref class Directory 
This language is not supported or no code example is available.
public class Directory
This language is not supported or no code example is available.
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
Contracts.IO.Directory

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1