Export (0) Print
Expand All

FileSystemInfo Members

FileSystemInfo overview

Public Properties

public propertyAttributes

Supported by the .NET Compact Framework.

Gets or sets the FileAttributes of the current FileSystemInfo.
public propertyCreationTime

Supported only by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Gets a value indicating whether the file or directory exists.
public propertyExtension

Supported by the .NET Compact Framework.

Gets the string representing the extension part of the file.
public propertyFullName

Supported by the .NET Compact Framework.

Gets the full path of the directory or file.
public propertyLastAccessTime

Supported only by the .NET Compact Framework.

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

Supported only by the .NET Compact Framework.

Gets or sets the time when the current file or directory was last written to.
public propertyLastWriteTimeUtc 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.

For files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists. Otherwise, the Name property gets the name of the directory.

Public Methods

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 methodDelete

Supported by the .NET Compact Framework.

Deletes a file or directory.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
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 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 methodRefresh

Supported by the .NET Compact Framework.

Refreshes the state of the object.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Constructors

protected constructorFileSystemInfo Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the FileSystemInfo class.

Protected Fields

protected fieldFullPath

Supported by the .NET Compact Framework.

Represents the fully qualified path of the directory or file.
protected fieldOriginalPath

Supported by the .NET Compact Framework.

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

FileSystemInfo Class | System.IO Namespace

Show:
© 2014 Microsoft