Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DirectoryInfo Methods

 

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodCreate()

Creates a directory.

System_CAPS_pubmethodCreate(DirectorySecurity)

Creates a directory using a DirectorySecurity object.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodCreateSubdirectory(String)

Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class.

System_CAPS_pubmethodCreateSubdirectory(String, DirectorySecurity)

Creates a subdirectory or subdirectories on the specified path with the specified security. The specified path can be relative to this instance of the DirectoryInfo class.

System_CAPS_pubmethodDelete()

Deletes this DirectoryInfo if it is empty.(Overrides FileSystemInfo.Delete().)

System_CAPS_pubmethodDelete(Boolean)

Deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files.

System_CAPS_pubmethodEnumerateDirectories()

Returns an enumerable collection of directory information in the current directory.

System_CAPS_pubmethodEnumerateDirectories(String)

Returns an enumerable collection of directory information that matches a specified search pattern.

System_CAPS_pubmethodEnumerateDirectories(String, SearchOption)

Returns an enumerable collection of directory information that matches a specified search pattern and search subdirectory option.

System_CAPS_pubmethodEnumerateFiles()

Returns an enumerable collection of file information in the current directory.

System_CAPS_pubmethodEnumerateFiles(String)

Returns an enumerable collection of file information that matches a search pattern.

System_CAPS_pubmethodEnumerateFiles(String, SearchOption)

Returns an enumerable collection of file information that matches a specified search pattern and search subdirectory option.

System_CAPS_pubmethodEnumerateFileSystemInfos()

Returns an enumerable collection of file system information in the current directory.

System_CAPS_pubmethodEnumerateFileSystemInfos(String)

Returns an enumerable collection of file system information that matches a specified search pattern.

System_CAPS_pubmethodEnumerateFileSystemInfos(String, SearchOption)

Returns an enumerable collection of file system information that matches a specified search pattern and search subdirectory option.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetAccessControl()

Gets a DirectorySecurity object that encapsulates the access control list (ACL) entries for the directory described by the current DirectoryInfo object.

System_CAPS_pubmethodGetAccessControl(AccessControlSections)

Gets a DirectorySecurity object that encapsulates the specified type of access control list (ACL) entries for the directory described by the current DirectoryInfo object.

System_CAPS_pubmethodGetDirectories()

Returns the subdirectories of the current directory.

System_CAPS_pubmethodGetDirectories(String)

Returns an array of directories in the current DirectoryInfo matching the given search criteria.

System_CAPS_pubmethodGetDirectories(String, SearchOption)

Returns an array of directories in the current DirectoryInfo matching the given search criteria and using a value to determine whether to search subdirectories.

System_CAPS_pubmethodGetFiles()

Returns a file list from the current directory.

System_CAPS_pubmethodGetFiles(String)

Returns a file list from the current directory matching the given search pattern.

System_CAPS_pubmethodGetFiles(String, SearchOption)

Returns a file list from the current directory matching the given search pattern and using a value to determine whether to search subdirectories.

System_CAPS_pubmethodGetFileSystemInfos()

Returns an array of strongly typed FileSystemInfo entries representing all the files and subdirectories in a directory.

System_CAPS_pubmethodGetFileSystemInfos(String)

Retrieves an array of strongly typed FileSystemInfo objects representing the files and subdirectories that match the specified search criteria.

System_CAPS_pubmethodGetFileSystemInfos(String, SearchOption)

Retrieves an array of FileSystemInfo objects that represent the files and subdirectories matching the specified search criteria.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo object with the file name and additional exception information.(Inherited from FileSystemInfo.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodMoveTo(String)

Moves a DirectoryInfo instance and its contents to a new path.

System_CAPS_pubmethodRefresh()

Refreshes the state of the object.(Inherited from FileSystemInfo.)

System_CAPS_pubmethodSetAccessControl(DirectorySecurity)

Applies access control list (ACL) entries described by a DirectorySecurity object to the directory described by the current DirectoryInfo object.

System_CAPS_pubmethodToString()

Returns the original path that was passed by the user.(Overrides Object.ToString().)

Return to top
Show:
© 2017 Microsoft