FileSystemInfo Class |
Namespace: System.IO
[SerializableAttribute] public abstract class FileSystemInfo : MarshalByRefObject, ISerializable
The FileSystemInfo type exposes the following members.
Name | Description | |
---|---|---|
Delete | Deletes a file or directory. | |
Equals(Object) | (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 | Represents the fully qualified path of the directory or file. | |
OriginalPath | The path originally specified by the user, whether relative or absolute. |
Name | Description | |
---|---|---|
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. | |
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. |