Export (0) Print
Expand All

DirectoryInfo Methods

The methods of the DirectoryInfo class are listed here. For a complete list of DirectoryInfo class members, see the DirectoryInfo Members topic.

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