UriUtility.MatchesDomain method

Indicates whether a URI targets a domain.

public static bool MatchesDomain(this Uri uri, string domain)
parameter description
uri A URI.
domain A domain name string.

Return Value

True if the supplied URI targets the supplied domain name string, otherwise false.

See Also