IFsrmQuotaObject::ApplyTemplate 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.]

Applies the property values of the specified quota template to this quota object.

Syntax


HRESULT ApplyTemplate(
  [in] BSTR quotaTemplateName
);

Parameters

quotaTemplateName [in]

The name of the quota template. The string is limited to 4,000 characters.

Return value

The method returns the following return values.

S_OK

Success

FSRM_E_NOT_FOUND

The specified template was not found.

FSRM_E_INVALID_NAME

The quotaTemplateName parameter is NULL or contains only white space.

FSRM_E_OUT_OF_RANGE

The specified name is too long.

Examples

For an example, see Defining a Quota.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmQuota.h

DLL

SrmSvc.dll

IID

IID_IFsrmQuotaObject is defined as 42dc3511-61d5-48ae-b6dc-59fc00c0a8d6

See also

IFsrmQuotaObject
MSFT_FSRMQuota

 

 

Show: