File |
[TypeConverterAttribute(typeof(FileNameConverter))] public sealed class FileName : PathName, IEquatable<FileName>
The FileName type exposes the following members.
Name | Description | |
---|---|---|
![]() | IsRelative |
Gets whether this path is relative.
(Inherited from PathName) |
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) |
Name | Description | |
---|---|---|
![]() ![]() | Equality(FileName, FileName) | |
![]() ![]() | Equality(FileName, String) | Obsolete. |
![]() ![]() | Equality(String, FileName) | Obsolete. |
![]() ![]() | (FileName to String) | |
![]() ![]() | Inequality(FileName, FileName) | |
![]() ![]() | Inequality(FileName, String) | Obsolete. |
![]() ![]() | Inequality(String, FileName) | Obsolete. |