Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EnumTemplates method

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

Enumerates the quota templates on the server.

Syntax


HRESULT EnumTemplates(
  [in]  FsrmEnumOptions            options,
  [out] IFsrmCommittableCollection **quotaTemplates
);

Parameters

options [in]

Options to use when enumerating the quota templates. For possible values, see the FsrmEnumOptions enumeration.

quotaTemplates [out]

An IFsrmCommittableCollection interface that contains a collection of quota templates.

Each item of the collection is a VARIANT of type VT_DISPATCH. Query the pdispVal member of the variant for the IFsrmQuotaTemplate interface.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

FSRM_E_NOT_SUPPORTED

The FsrmEnumOptions_Asynchronous option is not supported.

E_OUTOFMEMORY

There is not enough memory to complete the operation.

E_INVALIDARG

The quotaTemplates parameter is NULL.

 

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:
© 2015 Microsoft