IFsrmQuotaTemplate::Name property

[This property is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMQuota class.]

Retrieves and sets the name of the quota template.

This property is read/write.

Syntax


HRESULT put_Name(
  [in]  BSTR name
);

HRESULT get_Name(
  [out] BSTR name
);

Property value

A unique name for the quota template. The string is limited to 4,000 characters.

Error codes

The method returns the following return values.

S_OK

Success

FSRM_E_OUT_OF_RANGE

The specified name is too long.

E_INVALIDARG

Returned for the following reasons:

  • The name parameter is NULL.
  • The name contains at least one of the following characters: comma (,), apostrophe ('), quotation mark ("), pipe (|).

Remarks

If you do not specify a name, FSRM generates a unique name that begins with "QuotaTemplate".

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_IFsrmQuotaTemplate is defined as a2efab31-295e-46bb-b976-e86d58b52e8b

See also

IFsrmQuotaTemplate
MSFT_FSRMQuota

 

 

Show: