3.2.4.2.20.4 Name (put) (Opnum 23)

The Name (put) method sets the name of the quota template.

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_QUOTA_TEMPLATE | 0x01))] HRESULT Name(
   [in] BSTR name
 );

name: Contains the name for the quota template to use. This string MUST NOT contain illegal name characters (section 3.2.4.2).

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

Return value/code

Description

0x8004530D

FSRM_E_OUT_OF_RANGE

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

0x80070057

E_INVALIDARG

This code is returned for the following reasons:

  • The name parameter is not a valid value.

  • The name parameter contains non-valid characters or is NULL. The following are considered invalid characters: comma (,), single quote ('), double quote ("), vertical bar (|).

The server MUST validate name to be a unique case-insensitive Unicode string; otherwise, return E_INVALIDARG.

The server MUST use name as the Directory Quota Template.Name for the quota template or return a nonzero error code.