3.2.4.2.14.8 DeleteThreshold (Opnum 18)

The DeleteThreshold method deletes a threshold from the quota objects list of thresholds.

 [id(FSRM_DISPID_QUOTA_BASE | 0x02)] HRESULT DeleteThreshold(
   [in] FSRM_QUOTA_THRESHOLD threshold
 );

threshold: Contains the value of the threshold to delete from the quota object.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80045301

FSRM_E_NOT_FOUND

No threshold was found on the quota object equal to the value specified in the threshold parameter.

0x8004530D

FSRM_E_OUT_OF_RANGE

The content of the threshold parameter is less than 1 or greater than 250.

Upon receiving this message, the server MUST validate parameters:

  • Verify that threshold is greater than 0 and less than 251.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST delete the threshold from the quota object's list of thresholds or return a nonzero error code. If the threshold does not exist for the quota object, the server MUST return FSRM_E_NOT_FOUND.