Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

FileInfo Properties

The FileInfo type exposes the following members.

Public property Attributes Gets or sets the FileAttributes of the current FileSystemInfo. (Inherited from FileSystemInfo.)
Public property CreationTime Gets or sets the creation time of the current FileSystemInfo object. (Inherited from FileSystemInfo.)
Public property Directory Gets an instance of the parent directory.
Public property DirectoryName Gets a string representing the directory's full path.
Public property Exists Gets a value indicating whether a file exists. (Overrides FileSystemInfo.Exists.)
Public property Extension Gets the string representing the extension part of the file. (Inherited from FileSystemInfo.)
Public property FullName Gets the full path of the directory or file. (Inherited from FileSystemInfo.)
Public property LastAccessTime Gets or sets the time the current file or directory was last accessed. (Inherited from FileSystemInfo.)
Public property LastWriteTime Gets or sets the time when the current file or directory was last written to. (Inherited from FileSystemInfo.)
Public property Length Gets the size, in bytes, of the current file.
Public property Name Gets the name of the file. (Overrides FileSystemInfo.Name.)

© 2015 Microsoft