C# Класс DomainParser.Library.DomainName

Показать файл Открыть проект

Открытые методы

Метод Описание
DomainName ( string domainString ) : System

Constructs a DomainName object from the string representation of a domain.

TryParse ( string domainString, DomainName &result ) : bool

Converts the string representation of a domain to its DomainName equivalent. A return value indicates whether the operation succeeded.

Приватные методы

Метод Описание
DomainName ( string TLD, string SLD, string SubDomain, TLDRule TLDRule ) : System

Constructs a DomainName object from its 3 parts

FindMatchingTLDRule ( string domainString ) : TLDRule

Finds matching rule for a domain. If no rule is found, returns a null TLDRule object

ParseDomainName ( string domainString, string &TLD, string &SLD, string &SubDomain, TLDRule &MatchingRule ) : void

Converts the string representation of a domain to it's 3 distinct components: Top Level Domain (TLD), Second Level Domain (SLD), and subdomain information

Описание методов

DomainName() публичный Метод

Constructs a DomainName object from the string representation of a domain.
public DomainName ( string domainString ) : System
domainString string
Результат System

TryParse() публичный статический Метод

Converts the string representation of a domain to its DomainName equivalent. A return value indicates whether the operation succeeded.
public static TryParse ( string domainString, DomainName &result ) : bool
domainString string
result DomainName
Результат bool