Click or drag to resize

DirectoryName Class

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

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
[TypeConverterAttribute(typeof(DirectoryNameConverter))]
public sealed class DirectoryName : PathName

The DirectoryName type exposes the following members.

Constructors
 NameDescription
Public methodDirectoryName(DirectoryName) Initializes a new instance of the DirectoryName class from an existing directory name.
Obsolete
Public methodDirectoryName(String) Initializes a new instance of the DirectoryName class.
Top
Properties
 NameDescription
Public propertyIsRelative Gets whether this path is relative.
(Inherited from PathName)
Top
Methods
 NameDescription
Public methodCombine(DirectoryName) Combines this directory name with a relative path.
Public methodCombine(FileName) Combines this directory name with a relative path.
Public methodCombineDirectory Combines this directory name with a relative path.
Public methodCombineFile Combines this directory name with a relative path.
Public methodStatic memberCreate(DirectoryName) Returns the specified directory name instance.
Obsolete
Public methodStatic memberCreate(String) Creates a DirectoryName 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(DirectoryName) Determines whether this instance and another directory name are equal.
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Public methodExists Returns true if this directory exists in the file system.
(Overrides PathNameExists)
Public methodGetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
Public methodGetParentDirectory Gets the directory name.
(Inherited from PathName)
Public methodGetRelativePath(DirectoryName) Converts the specified absolute path into a relative path (relative to this).
Public methodGetRelativePath(FileName) Converts the specified absolute path into a relative path (relative to this).
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from PathName)
Public methodToStringWithTrailingBackslash Gets the directory name as a string, including a trailing backslash.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(DirectoryName, DirectoryName) Determines whether two directory names are equal.
Public operatorStatic memberEquality(DirectoryName, String) Determines whether a directory name and a string path are equal.
Obsolete
Public operatorStatic memberEquality(String, DirectoryName) Determines whether a string path and a directory name are equal.
Obsolete
Public operatorStatic member(DirectoryName to String) Converts a DirectoryName to its string path.
Public operatorStatic memberInequality(DirectoryName, DirectoryName) Determines whether two directory names are not equal.
Public operatorStatic memberInequality(DirectoryName, String) Determines whether a directory name and a string path are not equal.
Obsolete
Public operatorStatic memberInequality(String, DirectoryName) Determines whether a string path and a directory name are not equal.
Obsolete
Top
See Also