IAzBizRuleParameters::AddParameters method

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

varParameterNames [in]

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.

varParameterValues [in]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Azroles.h

IDL

Azroles.idl

IID

IID_IAzBizRuleParameters is defined as fc17685f-e25d-4dcd-bae1-276ec9533cb5

See also

IAzBizRuleParameters
IAzClientContext3::BizRuleParameters

 

 

Show: