IFsrmQuotaBase::CreateThresholdAction method

[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(
  FSRM_QUOTA_THRESHOLD threshold,
  FsrmActionType       actionType,
  IFsrmAction          **action
);

Parameters

threshold

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

actionType

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

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

   
Windows version None supported Windows Server 2008
Target Platform Windows
Header fsrmquota.h
DLL SrmSvc.dll

See Also

IFsrmQuotaBase

MSFT_FSRMQuota