Compartilhar via


SubdomainOf

Applies to: Lync 2013 | Lync Server 2013

SubdomainOf

The SubdomainOf function tests whether one domain is a subdomain of another specified domain.

Syntax

bool SubdomainOf(
  string uri,
  string uriTemplate
);

Parameters

  • uri
    The URI to test for subdomain membership within uriTemplate.

  • uriTemplate
    A domain.

Return values

Returns true if uri is a subdomain of uriTemplate; false if it is not.

Remarks

Parameter values must include the scheme portion of the URI, for example "sip:someone@example.com".

For SIP URIs (URIs that begin with "sip:" or "sips:"), this function performs a postfix match on the domain. For example, "test.msn.com" is identified as a subdomain of "msn.com".

The wildcard character ("*") and regular expressions are not supported.