IFsrmQuotaBase::AddThreshold 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.]

Adds a threshold to the quota object.

Syntax

HRESULT AddThreshold(
  [in] FSRM_QUOTA_THRESHOLD threshold
);

Parameters

[in] threshold

The threshold to add to the quota object. The threshold is expressed as a percentage of the quota limit. The value must be from 1 through 250, inclusively.

Return value

The method returns the following return values.

Remarks

You can specify up to 16 unique thresholds for a quota.

A threshold defines the percentage (as a whole number) of directory quota limit used. When the size of all data in the directory exceeds the threshold, the FSRM server performs the specified actions (see IFsrmQuotaBase::CreateThresholdAction).

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