Partager via


QueryDomain

QueryDomain

The QueryDomain function indicates whether a specified domain belongs to a specified domain type.

Syntax

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 domainname parameter belongs to the domain type specified by the domaintype parameter; else false.