Click or drag to resize

FileName Class

Represents a path to a file. The equality operator is overloaded to compare for path equality (case insensitive, normalizing paths with '..\')
Inheritance Hierarchy
SystemObject
  Altaxo.Main.ServicesPathName
    Altaxo.Main.ServicesFileName

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[TypeConverterAttribute(typeof(FileNameConverter))]
public sealed class FileName : PathName, 
	IEquatable<FileName>

The FileName type exposes the following members.

Constructors
 NameDescription
Public methodFileNameInitializes a new instance of the FileName class
Top
Properties
 NameDescription
Public propertyIsRelative Gets whether this path is relative.
(Inherited from PathName)
Top
Methods
 NameDescription
Public methodStatic memberCreate 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).
Public methodEquals(FileName) 
Public methodEquals(Object)
(Overrides ObjectEquals(Object))
Public methodExists Returns true if this directory exists in the file system.
(Overrides PathNameExists)
Public methodStatic memberGetDirectoryName Gets the name of the directory from the given file name. Throws an InvalidOperationException if a directory name could not be retrieved.
Public methodGetExtension Gets the file extension.
Public methodGetFileName Gets the file name (not the full path).
Public methodGetFileNameWithoutExtension Gets the file name without extension.
Public methodGetHashCode
(Overrides ObjectGetHashCode)
Public methodGetParentDirectory Gets the directory name.
(Inherited from PathName)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasExtension Gets whether this file name has the specified extension.
Public methodToString
(Inherited from PathName)
Top
Operators
See Also