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

Adds a threshold to the quota object.

Syntax


HRESULT AddThreshold(
  [in] FSRM_QUOTA_THRESHOLD threshold
);

Parameters

threshold [in]

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.

S_OK

Success

FSRM_E_OUT_OF_RANGE

The threshold value is out of range or the maximum number of thresholds for the quota already exists.

FSRM_E_ALREADY_EXISTS

The threshold value already exists.

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmQuota.h

DLL

SrmSvc.dll

IID

IID_IFsrmQuotaBase is defined as 1568a795-3924-4118-b74b-68d8f0fa5daf

See also

IFsrmQuotaBase
MSFT_FSRMQuota

 

 

Show: