Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System.IO Namespace
DirectoryInfo Class
 DirectoryInfo Members

  Switch on low bandwidth view
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

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
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDirectoryInfoInitializes a new instance of the DirectoryInfo class on the specified path.
Top
  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCreateOverloaded. Creates a directory.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCreateSubdirectoryOverloaded. Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDeleteOverloaded. Deletes a DirectoryInfo and its contents from a path.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAccessControlOverloaded. Gets the access control list (ACL) entries for the current directory.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetDirectoriesOverloaded. Returns the subdirectories of the current directory.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetFilesOverloaded. Returns a file list from the current directory.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetFileSystemInfosOverloaded. Retrieves an array of strongly typed FileSystemInfo objects representing files and subdirectories of the current directory.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetObjectData Sets the SerializationInfo object with the file name and additional exception information. (Inherited from FileSystemInfo.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseCloneOverloaded.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMoveToMoves a DirectoryInfo instance and its contents to a new path.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkRefresh Refreshes the state of the object. (Inherited from FileSystemInfo.)
Public methodSetAccessControlApplies access control list (ACL) entries described by a DirectorySecurity object to the directory described by the current DirectoryInfo object.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringReturns the original path that was passed by the user. (Overrides Object..::.ToString()()().)
Top
  NameDescription
Protected fieldSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFullPath Represents the fully qualified path of the directory or file. (Inherited from FileSystemInfo.)
Protected fieldSupported by the .NET Compact FrameworkSupported by the XNA FrameworkOriginalPath The path originally specified by the user, whether relative or absolute. (Inherited from FileSystemInfo.)
Top
  NameDescription
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkAttributes Gets or sets the FileAttributes of the current FileSystemInfo. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkCreationTime Gets or sets the creation time of the current FileSystemInfo object. (Inherited from FileSystemInfo.)
Public propertyCreationTimeUtc Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkExistsGets a value indicating whether the directory exists. (Overrides FileSystemInfo..::.Exists.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkExtension Gets the string representing the extension part of the file. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkFullName Gets the full path of the directory or file. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkLastAccessTime Gets or sets the time the current file or directory was last accessed. (Inherited from FileSystemInfo.)
Public propertyLastAccessTimeUtc Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkLastWriteTime Gets or sets the time when the current file or directory was last written to. (Inherited from FileSystemInfo.)
Public propertyLastWriteTimeUtc Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkNameGets the name of this DirectoryInfo instance. (Overrides FileSystemInfo..::.Name.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkParentGets the parent directory of a specified subdirectory.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkRootGets 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
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker