.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.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDirectoryInfoInitializes a new instance of the DirectoryInfo class on the specified path.
Top
Methods

  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 FrameworkEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalizeAllows 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 FrameworkGetHashCodeServes 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 methodGetObjectDataSets the SerializationInfo object with the file name and additional exception information. (Inherited from FileSystemInfo.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeGets 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 FrameworkRefreshRefreshes 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
Fields

  NameDescription
Protected fieldSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFullPathRepresents the fully qualified path of the directory or file. (Inherited from FileSystemInfo.)
Protected fieldSupported by the .NET Compact FrameworkSupported by the XNA FrameworkOriginalPathThe path originally specified by the user, whether relative or absolute. (Inherited from FileSystemInfo.)
Top
Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkAttributesGets or sets the FileAttributes of the current FileSystemInfo. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkCreationTimeGets or sets the creation time of the current FileSystemInfo object. (Inherited from FileSystemInfo.)
Public propertyCreationTimeUtcGets 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 FrameworkExtensionGets the string representing the extension part of the file. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkFullNameGets the full path of the directory or file. (Inherited from FileSystemInfo.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkLastAccessTimeGets or sets the time the current file or directory was last accessed. (Inherited from FileSystemInfo.)
Public propertyLastAccessTimeUtcGets 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 FrameworkLastWriteTimeGets or sets the time when the current file or directory was last written to. (Inherited from FileSystemInfo.)
Public propertyLastWriteTimeUtcGets 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
See Also

Reference

Tags :


Page view tracker