FileSystemInfo Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides the base class for both FileInfo and DirectoryInfo objects.
Assembly: mscorlib (in mscorlib.dll)
The FileSystemInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | FileSystemInfo | Security Critical. Initializes a new instance of the FileSystemInfo class. |
| Name | Description | |
|---|---|---|
![]() | Attributes | Gets or sets the FileAttributes of the current FileSystemInfo. |
![]() | CreationTime | Gets or sets the creation time of the current FileSystemInfo object. |
![]() | Exists | Gets a value indicating whether the file or directory exists. |
![]() | Extension | Gets the string representing the extension part of the file. |
![]() | FullName | Gets the full path of the directory or file. |
![]() | LastAccessTime | Gets or sets the time the current file or directory was last accessed. |
![]() | LastWriteTime | Gets or sets the time when the current file or directory was last written to. |
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | Delete | Deletes a file or directory. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Refresh | Refreshes the state of the object. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | FullPath | Infrastructure. Represents the fully qualified path of the directory or file. |
![]() | OriginalPath | Infrastructure. The path originally specified by the user, whether relative or absolute. |
Show:



