QueryDomain

The QueryDomainfunction indicates whether a specified domain belongs to a specified domain type.

Syntax

  Copy codeCopy code
bool QueryDomain(
  Domain domaintype,
  string domainname
);

Parameters

Domaintype

Specifies whether to query the Internal Domain list or the Block list on the Access Edge Server.

Domainname

Specifies the domain name to query for.

Return values

Returns true if the domain name specified by the domainnameparameter belongs to the domain type specified by the domaintypeparameter; otherwise, false .