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.

Directory Methods

The Directory type exposes the following members.

  NameDescription
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework CreateDirectory Overloaded. Creates all the directories in a specified path.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Delete Overloaded. Deletes a specified directory.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Exists Determines whether the given path refers to an existing directory on disk.
Public method Static member GetAccessControl Overloaded. Returns the Windows access control list (ACL) for a directory.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetCreationTime Gets the creation date and time of a directory.
Public method Static member GetCreationTimeUtc Gets the creation date and time, in Coordinated Universal Time (UTC) format, of a directory.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetCurrentDirectory Gets the current working directory of the application.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetDirectories Overloaded. Gets the names of subdirectories in a specified directory.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetDirectoryRoot Returns the volume information, root information, or both for the specified path.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetFiles Overloaded. Returns the names of files in a specified directory.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetFileSystemEntries Overloaded. Returns the names of all files and subdirectories in a specified directory.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetLastAccessTime Returns the date and time the specified file or directory was last accessed.
Public method Static member GetLastAccessTimeUtc Returns the date and time, in Coordinated Universal Time (UTC) format, that the specified file or directory was last accessed.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetLastWriteTime Returns the date and time the specified file or directory was last written to.
Public method Static member GetLastWriteTimeUtc Returns the date and time, in Coordinated Universal Time (UTC) format, that the specified file or directory was last written to.
Public method Static member GetLogicalDrives Retrieves the names of the logical drives on this computer in the form "<drive letter>:\".
Public method Static member GetParent Retrieves the parent directory of the specified path, including both absolute and relative paths.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Move Moves a file or a directory and its contents to a new location.
Public method Static member SetAccessControl Applies access control list (ACL) entries described by a DirectorySecurity object to the specified directory.
Public method Static member SetCreationTime Sets the creation date and time for the specified file or directory.
Public method Static member SetCreationTimeUtc Sets the creation date and time, in Coordinated Universal Time (UTC) format, for the specified file or directory.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework SetCurrentDirectory Sets the application's current working directory to the specified directory.
Public method Static member SetLastAccessTime Sets the date and time the specified file or directory was last accessed.
Public method Static member SetLastAccessTimeUtc Sets the date and time, in Coordinated Universal Time (UTC) format, that the specified file or directory was last accessed.
Public method Static member SetLastWriteTime Sets the date and time a directory was last written to.
Public method Static member SetLastWriteTimeUtc Sets the date and time, in Coordinated Universal Time (UTC) format, that a directory was last written to.
Top

Community Additions

Show:
© 2014 Microsoft