FileSystemInfo Members
.NET Framework 2.0
Provides the base class for both FileInfo and DirectoryInfo objects.
The following tables list the members exposed by the FileSystemInfo type.
| Name | Description | |
|---|---|---|
| FileSystemInfo | Overloaded. Initializes a new instance of the FileSystemInfo class. |
| Name | Description | |
|---|---|---|
| FullPath | Represents the fully qualified path of the directory or file. |
| OriginalPath | The path originally specified by the user, whether relative or absolute. |
| Name | Description | |
|---|---|---|
| Attributes | Gets or sets the FileAttributes of the current FileSystemInfo. |
| CreationTime | Gets or sets the creation time of the current FileSystemInfo object. |
| CreationTimeUtc | Gets or sets the creation time, in coordinated universal time (UTC), 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. |
| LastAccessTimeUtc | Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed. |
| LastWriteTime | Gets or sets the time when the current file or directory was last written to. |
| LastWriteTimeUtc | Gets or sets the time, in coordinated universal time (UTC), 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. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
| Delete | Deletes a file or directory. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetObjectData | Sets the SerializationInfo object with the file name and additional exception information. |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| Refresh | Refreshes the state of the object. |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| MemberwiseClone | Overloaded. (Inherited from MarshalByRefObject.) |