Compartilhar via


SubdomainOf(string,string) function

 
Microsoft Office Live Communications Server 2005 with SP1

SubdomainOf

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

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.

  
  What did you think of this topic?
  © 2008 Microsoft Corporation. All rights reserved.