Export (0) Print
Expand All

IFsrmQuotaTemplateManager::GetTemplate 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.]

Retrieves the specified quota template.

Syntax


HRESULT GetTemplate(
  [in]   BSTR name,
  [out]  IFsrmQuotaTemplate **quotaTemplate
);

Parameters

name [in]

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

quotaTemplate [out]

An IFsrmQuotaTemplate interface to the retrieved template object.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

FSRM_E_NOT_FOUND

The specified template was not found.

FSRM_E_INVALID_NAME

The name parameter is NULL or contains only white space.

FSRM_E_OUT_OF_RANGE

The specified name is too long.

E_INVALIDARG

The quotaTemplate parameter is NULL.

 

Examples

For an example, see Updating a Quota.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmQuota.h (include FsrmQuota.h or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmQuotaTemplateManager is defined as 97d3d443-251c-4337-81e7-b32e8f4ee65e

IID

IID_IFsrmQuotaTemplateManager is defined as 4173ac41-172d-4d52-963c-fdc7e415f717

See also

IFsrmQuotaTemplateManager
FsrmQuotaTemplateManager
MSFT_FSRMQuota

 

 

Show:
© 2014 Microsoft