C# 클래스 DomainParser.Library.DomainName

파일 보기 프로젝트 열기: danesparza/domainname-parser

공개 메소드들

메소드 설명
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