Export (0) Print
Expand All

DirectoryInfo Members

DirectoryInfo overview

Public Constructors

public constructorDirectoryInfo Constructor

Supported by the .NET Compact Framework.

Initializes a new instance of the DirectoryInfo class on the specified path.

Public Properties

public propertyAttributes (inherited from FileSystemInfo)

Supported by the .NET Compact Framework.

Gets or sets the FileAttributes of the current FileSystemInfo.
public propertyCreationTime (inherited from FileSystemInfo)

Supported by the .NET Compact Framework.

Gets or sets the creation time of the current FileSystemInfo object.
public propertyCreationTimeUtc (inherited from FileSystemInfo) Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object.
public propertyExists

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the directory exists.
public propertyExtension (inherited from FileSystemInfo)

Supported by the .NET Compact Framework.

Gets the string representing the extension part of the file.
public propertyFullName (inherited from FileSystemInfo)

Supported by the .NET Compact Framework.

Gets the full path of the directory or file.
public propertyLastAccessTime (inherited from FileSystemInfo)

Supported by the .NET Compact Framework.

Gets or sets the time the current file or directory was last accessed.
public propertyLastAccessTimeUtc (inherited from FileSystemInfo) Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
public propertyLastWriteTime (inherited from FileSystemInfo)

Supported by the .NET Compact Framework.

Gets or sets the time when the current file or directory was last written to.
public propertyLastWriteTimeUtc (inherited from FileSystemInfo) Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
public propertyName

Supported by the .NET Compact Framework.

Overridden. Gets the name of this DirectoryInfo instance.
public propertyParent

Supported by the .NET Compact Framework.

Gets the parent directory of a specified subdirectory.
public propertyRoot

Supported by the .NET Compact Framework.

Gets the root portion of a path.

Public Methods

public methodCreate

Supported by the .NET Compact Framework.

Creates a directory.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodCreateSubdirectory

Supported by the .NET Compact Framework.

Creates a subdirectory or subdirectories on the specified path. The specified path can be relative to this instance of the DirectoryInfo class.
public methodDelete

Supported by the .NET Compact Framework.

Overloaded. Overridden. Deletes a DirectoryInfo and its contents from a path.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetDirectories

Supported by the .NET Compact Framework.

Overloaded. Returns the subdirectories of the current directory.
public methodGetFiles

Supported by the .NET Compact Framework.

Overloaded. Returns a file list from the current directory.
public methodGetFileSystemInfos

Supported by the .NET Compact Framework.

Overloaded. Retrieves an array of strongly typed FileSystemInfo objects.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetObjectData (inherited from FileSystemInfo) Sets the SerializationInfo object with the file name and additional exception information.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodMoveTo

Supported by the .NET Compact Framework.

Moves a DirectoryInfo instance and its contents to a new path.
public methodRefresh (inherited from FileSystemInfo)

Supported by the .NET Compact Framework.

Refreshes the state of the object.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Returns the original path that was passed by the user.

Protected Fields

protected fieldFullPath (inherited from FileSystemInfo) Represents the fully qualified path of the directory or file.
protected fieldOriginalPath (inherited from FileSystemInfo) The path originally specified by the user, whether relative or absolute.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

DirectoryInfo Class | System.IO Namespace

Show:
© 2014 Microsoft