DomainName Class

Represents a domain name

Definition

Namespace: ARSoft.Tools.Net
Assembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
C#
public class DomainName : IEquatable<DomainName>, 
	IComparable<DomainName>
Inheritance
Object    DomainName
Implements
IComparableDomainName, IEquatableDomainName

Constructors

DomainName Creates a new instance of the DomainName class

Properties

LabelCount Gets the count of labels this domain name contains
Labels Gets the labels of the domain name
Root The DNS root name (.)

Methods

CompareTo Compares the current instance with another name and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other name.
Equals(DomainName) Checks, whether this name is equal to an other name (case insensitive)
Equals(Object) Checks, whether this name is equal to an other object (case insensitive)
(Overrides ObjectEquals(Object))
Equals(DomainName, Boolean) Checks, whether this name is equal to an other name
GetHashCode Returns the hash code for this domain name
(Overrides ObjectGetHashCode)
GetParentName Gets a parent zone of the domain name
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsEqualOrSubDomainOf Returns if with domain name equals an other domain name or is a child of it
IsSubDomainOf Returns if with domain name is a child of an other domain name
Parse Parses the string representation of a domain name
ToString Returns the string representation of the domain name
(Overrides ObjectToString)
ToString(Boolean) 
TryParse Parses the string representation of a domain name

Operators

Addition(DomainName, DomainName) Concatinates two names
Equality(DomainName, DomainName) Checks, whether two names are identical (case sensitive)
Inequality(DomainName, DomainName) Checks, whether two names are not identical (case sensitive)

See Also