The DomainName type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| CompareTo | Compares one domain name to another | |
| CopyBytesTo | Copies to network byte representation of the domain name to a byte array | |
| EndsWith | Checks if a domain name ends with another | |
| Equals | Compares this domain name with another domain names for equality | |
| FromBytes | Extracts a domain name from a byte array - Domain name in buffer much have trailing zero | |
| FromBytesNT | Extracts a domain name from a byte array - No trailing zero is expected | |
| GetBytes | Network byte representation of the domain name | |
| GetBytesNT | Network byte representation of the domain name without trailing zero | |
| GetHashCode | Calculates hash code (Overrides Object..::.GetHashCode()()().) | |
| GetSegments | Returns specific segments (dot-to-dot) of a domain name | |
| Parent | Returns a domain name's parent name | |
| Parse | Parses a domain name from a string | |
| SegmentCount | Returns the number of domain name segments (dot-to-dot) | |
| ToString | String representation of domain name (not native characters) (Overrides Object..::.ToString()()().) | |
| ToStringNative | String representation of domain name (native characters) | |
| TryParse | Attempts to parse a domain name from a string |
Operators
| Name | Description | |
|---|---|---|
| Concatenate | Concatenates two domain names | |
| Equality | Compares two domain names for equality | |
| Inequality | Compares two domain names for inequality |
Fields
| Name | Description | |
|---|---|---|
| InAddrArpa | Constant for "in-addr.arpa" | |
| IP6Arpa | Constant for "ip6.arpa" | |
| Localhost | Constant for "localhost" | |
| Root | Constant for the root domain name |
Properties
| Name | Description | |
|---|---|---|
| DebuggerValue | For Visual Studio debugger visualization only |