File |
The FileName type exposes the following members.
| Name | Description | |
|---|---|---|
| Create | Creates a FileName instance from the string. It is valid to pass null or an empty string to this method (in that case, a null reference will be returned). | |
| Equals(FileName) | ||
| Equals(Object) | (Overrides ObjectEquals(Object)) | |
| Exists |
Returns true if this directory exists in the file system.
(Overrides PathNameExists) | |
| GetDirectoryName | Gets the name of the directory from the given file name. Throws an InvalidOperationException if a directory name could not be retrieved. | |
| GetExtension | Gets the file extension. | |
| GetFileName | Gets the file name (not the full path). | |
| GetFileNameWithoutExtension | Gets the file name without extension. | |
| GetHashCode | (Overrides ObjectGetHashCode) | |
| GetParentDirectory |
Gets the directory name.
(Inherited from PathName) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| HasExtension | Gets whether this file name has the specified extension. | |
| ToString | (Inherited from PathName) |