Export (0) Print
Expand All
3 out of 8 rated this helpful - Rate this topic

Directory Members

Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.

The following tables list the members exposed by the Directory type.

  Name Description
Public method Static Supported by the .NET Compact Framework CreateDirectory Overloaded. Creates all the directories in a specified path.
Public method Static Supported by the .NET Compact Framework Delete Overloaded. Deletes a specified directory.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Static Supported by the .NET Compact Framework Exists Determines whether the given path refers to an existing directory on disk.
Public method Static GetAccessControl Overloaded. Returns the Windows access control list (ACL) for a directory.
Public method Static Supported by the .NET Compact Framework GetCreationTime Gets the creation date and time of a directory.
Public method Static GetCreationTimeUtc Gets the creation date and time, in Coordinated Universal Time (UTC) format, of a directory.
Public method Static Supported by the .NET Compact Framework GetCurrentDirectory Gets the current working directory of the application.
Public method Static Supported by the .NET Compact Framework GetDirectories Overloaded. Gets the names of subdirectories in a specified directory.
Public method Static Supported by the .NET Compact Framework GetDirectoryRoot Returns the volume information, root information, or both for the specified path.
Public method Static Supported by the .NET Compact Framework GetFiles Overloaded. Returns the names of files in a specified directory.
Public method Static Supported by the .NET Compact Framework GetFileSystemEntries Overloaded. Returns the names of all files and subdirectories in a specified directory.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method Static Supported by the .NET Compact Framework GetLastAccessTime Returns the date and time the specified file or directory was last accessed.
Public method Static GetLastAccessTimeUtc Returns the date and time, in Coordinated Universal Time (UTC) format, that the specified file or directory was last accessed.
Public method Static Supported by the .NET Compact Framework GetLastWriteTime Returns the date and time the specified file or directory was last written to.
Public method Static 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 GetLogicalDrives Retrieves the names of the logical drives on this computer in the form "<drive letter>:\".
Public method Static GetParent Retrieves the parent directory of the specified path, including both absolute and relative paths.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static Supported by the .NET Compact Framework Move Moves a file or a directory and its contents to a new location.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Static SetAccessControl Applies access control list (ACL) entries described by a DirectorySecurity object to the specified directory.
Public method Static SetCreationTime Sets the creation date and time for the specified file or directory.
Public method Static SetCreationTimeUtc Sets the creation date and time, in Coordinated Universal Time (UTC) format, for the specified file or directory.
Public method Static Supported by the .NET Compact Framework SetCurrentDirectory Sets the application's current working directory to the specified directory.
Public method Static SetLastAccessTime Sets the date and time the specified file or directory was last accessed.
Public method Static SetLastAccessTimeUtc Sets the date and time, in Coordinated Universal Time (UTC) format, that the specified file or directory was last accessed.
Public method Static SetLastWriteTime Sets the date and time a directory was last written to.
Public method Static SetLastWriteTimeUtc Sets the date and time, in Coordinated Universal Time (UTC) format, that a directory was last written to.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.