IFsrmQuotaBase::CreateThresholdAction method (fsrmquota.h)

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMQuota class.]

Creates an action and associates it with the specified threshold.

Syntax

HRESULT CreateThresholdAction(
  [in]  FSRM_QUOTA_THRESHOLD threshold,
  [in]  FsrmActionType       actionType,
  [out] IFsrmAction          **action
);

Parameters

[in] threshold

The threshold with which to associate the action. Specify the same value that you specified when calling the IFsrmQuotaBase::AddThreshold method.

[in] actionType

The action to perform when the threshold is reached or exceeded. For possible values, see the FsrmActionType enumeration.

[out] action

An IFsrmAction interface of the newly created action. Query the interface for the action interface that you specified in the actionType parameter. For example, if the action type is FsrmActionType_Command, query the interface for the IFsrmActionCommand interface.

Return value

The method returns the following return values.

Remarks

You can specify up to four unique actions for each threshold.

The action is deleted if the threshold is deleted.

Examples

For an example, see Using Templates to Define Quotas.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows ServerĀ 2008
Target Platform Windows
Header fsrmquota.h
DLL SrmSvc.dll

See also

IFsrmQuotaBase

MSFT_FSRMQuota