DirectoryInfo Properties

The DirectoryInfo type exposes the following members.

  Name Description
Public property Attributes Gets or sets the attributes for the current file or directory. (Inherited from FileSystemInfo.)
Public property CreationTime Gets or sets the creation time of the current file or directory. (Inherited from FileSystemInfo.)
Public property CreationTimeUtc Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory. (Inherited from FileSystemInfo.)
Public property Exists Gets a value indicating whether the directory 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 LastAccessTimeUtc Gets or sets the time, in coordinated universal time (UTC), that 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 LastWriteTimeUtc Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to. (Inherited from FileSystemInfo.)
Public property Name Gets the name of this DirectoryInfo instance. (Overrides FileSystemInfo.Name.)
Public property Parent Gets the parent directory of a specified subdirectory.
Public property Root Gets the root portion of the directory.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft