3.2.4.7.15 SetConditionalPolicy (Opnum 21)

The SetConditionalPolicy method loads specified conditions into the conditional policy, which contains the conditions and the respective SwitchToPolicy element values. When a specified condition occurs and the management mode is MANUAL_ACTIVE_POLICY, WSRM MUST start managing resources using the policy specified by the corresponding SwitchToPolicy element value.

 [id(15), helpstring("method SetConditionalPolicy")] HRESULT SetConditionalPolicy(
   [in] BSTR bstrPolicyInfo
 );

bstrPolicyInfo: A string that specifies the conditions to be loaded in the form of a ConditionalPolicy element (section 2.2.5.12). For an example, see ConditionalPolicy example (section 4.2.9).

If this parameter is NULL, E_INVALIDARG SHOULD be returned.<112>

Return Values: This method returns 0x00000000 for success or a negative HRESULT value (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.

Return value/code

Description

0x00000000

S_OK

Operation successful.

0x80070057

E_INVALIDARG

One or more arguments are invalid.

Additional IWRMPolicy interface methods are specified in section 3.2.4.7.