Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
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 FileSystemInfo type exposes the following members.

Public property Attributes Gets or sets the FileAttributes of the current FileSystemInfo.
Public property CreationTime Gets or sets the creation time of the current FileSystemInfo object.
Public property Exists Gets a value indicating whether the file or directory exists.
Public property Extension Gets the string representing the extension part of the file.
Public property FullName Gets the full path of the directory or file.
Public property LastAccessTime Gets or sets the time the current file or directory was last accessed.
Public property LastWriteTime Gets or sets the time when the current file or directory was last written to.
Public property Name 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.

© 2015 Microsoft