Directory 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 Directory type exposes the following members.

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 CreateDirectory When it is called by trusted applications, creates all directories and subdirectories as specified by path.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Delete(String) When it is called by trusted applications, deletes an empty directory from a specified path.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Delete(String, Boolean) When it is called by trusted applications, deletes the specified directory and, if indicated, any subdirectories and files in the directory.
Public methodStatic member EnumerateDirectories(String) When it is called by trusted applications, returns an enumerable collection of directory names in a specified path.
Public methodStatic member EnumerateDirectories(String, String) When it is called by trusted applications, returns an enumerable collection of directory names that match a search pattern in a specified path.
Public methodStatic member EnumerateDirectories(String, String, SearchOption) When it is called by trusted applications, returns an enumerable collection of directory names that match a search pattern in a specified path, and optionally searches subdirectories.
Public methodStatic member EnumerateFiles(String) When it is called by trusted applications, returns an enumerable collection of file names in a specified path.
Public methodStatic member EnumerateFiles(String, String) When it is called by trusted applications, returns an enumerable collection of file names that match a search pattern in a specified path.
Public methodStatic member EnumerateFiles(String, String, SearchOption) When it is called by trusted applications, returns an enumerable collection of file names that match a search pattern in a specified path, and optionally searches subdirectories.
Public methodStatic member EnumerateFileSystemEntries(String) When it is called by trusted applications, returns an enumerable collection of file-system entries in a specified path.
Public methodStatic member EnumerateFileSystemEntries(String, String) When it is called by trusted applications, returns an enumerable collection of file-system entries that match a search pattern in a specified path.
Public methodStatic member EnumerateFileSystemEntries(String, String, SearchOption) When it is called by trusted applications, returns an enumerable collection of file names and directory names that match a search pattern in a specified path, and optionally searches subdirectories.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Exists When it is called by trusted applications, determines whether the given path refers to an existing directory on disk.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetCreationTime When it is called by trusted applications, gets the creation date and time of a directory.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetCurrentDirectory When it is called by trusted applications, gets the current working directory of the application.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetDirectories(String) Security Critical. Gets the names of subdirectories (including their paths) in the specified directory.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetDirectories(String, String) Security Critical. Gets an array of directories (including their paths) that match the specified search pattern in the current directory.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetDirectoryRoot When it is called by trusted applications, returns the volume information, root information, or both for the specified path.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFiles(String) Security Critical. Returns the names of files in the specified directory.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFiles(String, String) Security Critical. Returns the names of files in the specified directory that match the specified search pattern.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFileSystemEntries(String) Security Critical. Returns the names of all files and subdirectories in the specified directory.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFileSystemEntries(String, String) Security Critical. Returns an array of file system entries matching the specified search criteria.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetLastAccessTime When it is called by trusted applications, returns the date and time the specified file or directory was last accessed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetLastWriteTime When it is called by trusted applications, returns the date and time the specified file or directory was last written to.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Move When it is called by trusted applications, moves a file or a directory and its contents to a new location.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 SetCurrentDirectory Security Critical. Sets the application's current working directory to the specified directory.

Top