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 Class
Silverlight
Provides the base class for both FileInfo and DirectoryInfo objects.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
The FileSystemInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | Attributes | When called by trusted applications, gets or sets the FileAttributes of the current FileSystemInfo. |
![]() ![]() ![]() | CreationTime | When called by trusted applications, 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 | When called by trusted applications, gets the full path of the directory or file. |
![]() ![]() ![]() | LastAccessTime | When called by trusted applications, gets or sets the time the current file or directory was last accessed. |
![]() ![]() ![]() | LastWriteTime | When called by trusted applications, 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 | When called by trusted applications, 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. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
Show:





