SubdomainOf(string,string) function
Communications Server 2007 Server SDK Documentation |
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? |
© 2007 Microsoft Corporation. All rights reserved. |