DomainInfo Struct
The decomposition of a domain name according to the Public Suffix List.
public readonly struct DomainInfo : IEquatable<DomainInfo>- Implements
Properties
| Name | Description |
|---|---|
| Domain | The normalized domain name: lower-cased and stripped of its trailing dot. The IDN form of the input is preserved. |
| IsKnownPublicSuffix | true when a rule of the list matched; false when the implicit * rule was used. |
| PublicSuffix | The public suffix, also known as the effective top-level domain (eTLD). For instance co.uk for www.example.co.uk. |
| RegistrableDomain | The public suffix plus one label (eTLD+1), or null when the domain is itself a public suffix. For instance example.co.uk for www.example.co.uk. |
| Source | The section of the list the matching rule belongs to, or PublicSuffixRuleSources.None when no rule matched. |
| Subdomain | The labels before the registrable domain, or null when there is none. For instance www for www.example.co.uk. |
Domain
DomainInfo.csIsKnownPublicSuffix
DomainInfo.csPublicSuffix
DomainInfo.csRegistrableDomain
DomainInfo.csSource
DomainInfo.csThe section of the list the matching rule belongs to, or PublicSuffixRuleSources.None when no rule matched.
public PublicSuffixRuleSources Source { get; }Property value
Subdomain
DomainInfo.csMethods
| Name | Description |
|---|---|
| Equals(DomainInfo) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(DomainInfo)
public bool Equals(DomainInfo other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
DomainInfo.csOperators
| Name | Description |
|---|---|
| operator ==(DomainInfo, DomainInfo) | |
| operator !=(DomainInfo, DomainInfo) |
operator ==(DomainInfo, DomainInfo)
public static bool operator ==(DomainInfo left, DomainInfo right)No documentation is available.
operator !=(DomainInfo, DomainInfo)
public static bool operator !=(DomainInfo left, DomainInfo right)No documentation is available.