IAzBizRuleInterfaces::AddInterface method (azroles.h)

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

Syntax

HRESULT AddInterface(
  [in] BSTR    bstrInterfaceName,
  [in] LONG    lInterfaceFlag,
  [in] VARIANT varInterface
);

Parameters

[in] bstrInterfaceName

A string that contains the name used by scripts to call the interface specified by the varInterface parameter.

[in] lInterfaceFlag

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.

[in] varInterface

The ID of the interface 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.

Requirements

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

See also

IAzBizRuleInterfaces