Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileSystemInfo Properties

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

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.

See Also

FileSystemInfo Class | System.IO Namespace

Show:
© 2014 Microsoft