DirectoryInfo Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The DirectoryInfo type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Create When it is called by trusted applications, creates a directory.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CreateSubdirectory When it is called by trusted applications, creates a subdirectory or subdirectories on the specified path.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Delete() When it is called by trusted applications, deletes this DirectoryInfo if it is empty. (Overrides FileSystemInfo.Delete().)
Public methodSupported by Silverlight for Windows PhoneSupported 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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported 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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetDirectories() Security Critical. Returns the subdirectories of the current directory.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetDirectories(String) Security Critical. Returns an array of directories in the current DirectoryInfo matching the given search criteria.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFiles() Security Critical. Returns a file list from the current directory.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFiles(String) Security Critical. Returns a file list from the current directory matching the given searchPattern.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFileSystemInfos() Security Critical. Returns an array of strongly typed FileSystemInfo entries representing all the files and subdirectories in a directory.
Public methodSupported by Silverlight for Windows PhoneSupported 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 methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MoveTo When it is called by trusted applications, moves a DirectoryInfo instance and its contents to a new path.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Refresh Refreshes the state of the object. (Inherited from FileSystemInfo.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString Returns the original path that was passed by the user. (Overrides Object.ToString().)

Top