IAzBizRuleInterfaces::AddInterfaces method (azroles.h)

The AddInterfaces method adds the specified interfaces to the list of IDispatch interfaces that can be called by business rule (BizRule) scripts. To add the specified interfaces, AzMan calls the AddNamedItem method of the IActiveScript interface once for each specified interface.

Syntax

HRESULT AddInterfaces(
  VARIANT varInterfaceNames,
  VARIANT varInterfaceFlags,
  VARIANT varInterfaces
);

Parameters

varInterfaceNames

A SAFEARRAY that specifies the names that scripts use to call the interfaces specified by the varInterfaces array.

varInterfaceFlags

A SAFEARRAY that specifies flags sent to the AddNamedItem method of the IActiveScript interface. The AddNamedItem always behaves as if the SCRIPTITEM_ISVISIBLE flag is set, and the SCRIPTITEM_ISPERSISTENT flag is not set.

varInterfaces

A SAFEARRAY that specifies the IDs of the interfaces to be added.

Return value

If the method succeeds, it returns S_OK.

If the method fails, it returns an error code. For a list of common error codes, see Common HRESULT Values.

Remarks

The names of the interfaces specified by the varInterfaceNames array are in the same order as the corresponding interface IDs specified by the varInterfaces array.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header azroles.h