Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System.IO Namespace
DirectoryInfo Class
 DirectoryInfo Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DirectoryInfo Members

Updated: November 2007

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

The DirectoryInfo type exposes the following members.

  NameDescription
DirectoryInfo Initializes a new instance of the DirectoryInfo class on the specified path.
Top
  NameDescription
CreateOverloaded. Creates a directory.
CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
CreateSubdirectoryOverloaded. Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class.
DeleteOverloaded. Deletes a DirectoryInfo and its contents from a path.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetAccessControlOverloaded. Gets the access control list (ACL) entries for the current directory.
GetDirectoriesOverloaded. Returns the subdirectories of the current directory.
GetFilesOverloaded. Returns a file list from the current directory.
GetFileSystemInfosOverloaded. Retrieves an array of strongly typed FileSystemInfo objects representing files and subdirectories of the current directory.
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
GetObjectData Sets the SerializationInfo object with the file name and additional exception information. (Inherited from FileSystemInfo.)
GetType Gets the Type of the current instance. (Inherited from Object.)
InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
MemberwiseCloneOverloaded.
MoveTo Moves a DirectoryInfo instance and its contents to a new path.
Refresh Refreshes the state of the object. (Inherited from FileSystemInfo.)
SetAccessControl Applies access control list (ACL) entries described by a DirectorySecurity object to the directory described by the current DirectoryInfo object.
ToString Returns the original path that was passed by the user. (Overrides Object..::.ToString()()().)
Top
  NameDescription
FullPath Represents the fully qualified path of the directory or file. (Inherited from FileSystemInfo.)
OriginalPath The path originally specified by the user, whether relative or absolute. (Inherited from FileSystemInfo.)
Top
  NameDescription
Attributes Gets or sets the FileAttributes of the current FileSystemInfo. (Inherited from FileSystemInfo.)
CreationTime Gets or sets the creation time of the current FileSystemInfo object. (Inherited from FileSystemInfo.)
CreationTimeUtc Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object. (Inherited from FileSystemInfo.)
Exists Gets a value indicating whether the directory exists. (Overrides FileSystemInfo..::.Exists.)
Extension Gets the string representing the extension part of the file. (Inherited from FileSystemInfo.)
FullName Gets the full path of the directory or file. (Inherited from FileSystemInfo.)
LastAccessTime Gets or sets the time the current file or directory was last accessed. (Inherited from FileSystemInfo.)
LastAccessTimeUtc Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed. (Inherited from FileSystemInfo.)
LastWriteTime Gets or sets the time when the current file or directory was last written to. (Inherited from FileSystemInfo.)
LastWriteTimeUtc Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to. (Inherited from FileSystemInfo.)
Name Gets the name of this DirectoryInfo instance. (Overrides FileSystemInfo..::.Name.)
Parent Gets the parent directory of a specified subdirectory.
Root Gets the root portion of a path.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker