BESClientComplianceMod.Session

Use this object to interact with the BESClient. After construction, the object properties Open and Close can be called to initiate a compliance evaluation session with the BESClient.

Session Methods Description
long Open(

BSTR siteURL,

BSTR rulesXML,

long flags

);

Attempts to open a compliance evaluation session with the BESClient. The return value is 0 when an evaluation is successfully started. A negative number is returned when an evaluation cannot be started. The return value is one of the integer constants whose name begins with COMPLIANCE_ERROR in the API constants. The BESClient processes the compliance document named <rulesXML> in the __Compliance subfolder of the site data folder of the site whose gather url matches the <siteURL>.
long Close(); Closes the session. Call this property when you are finished with your evaluation. The return value is 0 on success, or one of the integer constants whose name begins with COMPLIANCE_ERROR in the API Constants.