IAzBizRuleParameters::AddParameters method (azroles.h)

The AddParameters method adds parameters to the list of parameters available to business rule (BizRule) scripts.

Syntax

HRESULT AddParameters(
  [in] VARIANT varParameterNames,
  [in] VARIANT varParameterValues
);

Parameters

[in] varParameterNames

The parameter names. This is a variant that contains either a SAFEARRAY or the JScript Array object. Each element of the array holds a VT_BSTR that contains a parameter name. This array must be sorted alphabetically; the sort order is as defined by a case-sensitive VarCmp. The order of the varParameterValues array must match the order of this array.

[in] varParameterValues

The values of the parameters that are available to BizRule scripts. This is a variant that contains either a SAFEARRAY or the JScript Array object. Each element of the array holds a value that corresponds to an element in the varParameterNames array. The default value is VT_NULL. The entries in the array can hold any type except VT_UNKNOWN and VT_DISPATCH.

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

IAzBizRuleParameters

IAzClientContext3::BizRuleParameters