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.
This topic has not yet been rated - Rate this topic

DirectoryInfo Methods

The DirectoryInfo type exposes the following members.

  Name Description
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Create When it is called by trusted applications, creates a directory.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 CreateSubdirectory When it is called by trusted applications, creates a subdirectory or subdirectories on the specified path.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Delete() When it is called by trusted applications, deletes this DirectoryInfo if it is empty. (Overrides FileSystemInfo.Delete().)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Delete(Boolean) When it is called by trusted applications, deletes this instance of a DirectoryInfo, specifying whether to delete subdirectories and files.
Public method EnumerateDirectories() When it is called by trusted applications, returns an enumerable collection of directory information in the current directory.
Public method EnumerateDirectories(String) When it is called by trusted applications, returns an enumerable collection of directory information that matches a specified search pattern.
Public method EnumerateDirectories(String, SearchOption) When it is called by trusted applications, returns an enumerable collection of directory information that matches a specified search pattern and search subdirectory option.
Public method EnumerateFiles() When it is called by trusted applications, returns an enumerable collection of file information in the current directory.
Public method EnumerateFiles(String) When it is called by trusted applications, returns an enumerable collection of file information that matches a search pattern.
Public method EnumerateFiles(String, SearchOption) When it is called by trusted applications, returns an enumerable collection of file information that matches a specified search pattern and search subdirectory option.
Public method EnumerateFileSystemInfos() When it is called by trusted applications, returns an enumerable collection of file system information in the current directory.
Public method EnumerateFileSystemInfos(String) When it is called by trusted applications, returns an enumerable collection of file system information that matches a specified search pattern.
Public method EnumerateFileSystemInfos(String, SearchOption) When it is called by trusted applications, returns an enumerable collection of file system information that matches a specified search pattern and search subdirectory option.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by Silverlight for Windows Phone Supported by Xbox 360 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.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetDirectories() Security Critical. Returns the subdirectories of the current directory.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetDirectories(String) Security Critical. Returns an array of directories in the current DirectoryInfo matching the given search criteria.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetFiles() Security Critical. Returns a file list from the current directory.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetFiles(String) Security Critical. Returns a file list from the current directory matching the given searchPattern.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetFileSystemInfos() Security Critical. Returns an array of strongly typed FileSystemInfo entries representing all the files and subdirectories in a directory.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetFileSystemInfos(String) Security Critical. Retrieves an array of strongly typed FileSystemInfo objects representing the files and subdirectories matching the specified search criteria.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by Silverlight for Windows Phone Supported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 MoveTo When it is called by trusted applications, moves a DirectoryInfo instance and its contents to a new path.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Refresh Refreshes the state of the object. (Inherited from FileSystemInfo.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ToString Returns the original path that was passed by the user. (Overrides Object.ToString().)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.