3.2.4.2.15.7 ApplyTemplate (Opnum 27)

The ApplyTemplate method applies the properties of the specified quota template to this quota object.

 [id(FSRM_DISPID_QUOTA_OBJECT | 0x01)] HRESULT ApplyTemplate(
   [in] BSTR quotaTemplateName
 );

quotaTemplateName: Contains the name of the quota template with properties to apply to this quota object. The maximum length of this string MUST be 4,000 characters.

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

The specified quota template could not be found.

0x80045308

FSRM_E_INVALID_NAME

The quotaTemplateName parameter is NULL.

0x8004530D

FSRM_E_OUT_OF_RANGE

The content of the quotaTemplateName parameter exceeds the maximum length of 4,000 characters.

The server MUST do one of the following or return a nonzero error code.

  • If no directory quota template with the specified name exists, the server MUST return FSRM_E_NOT_FOUND.

  • If the quota template does exist, the server MUST apply all settings from the specified template to this quota object.