IFsrmQuotaManager::CreateQuotaCollection 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.]

Creates an empty collection to which you can add quotas.

Syntax


HRESULT CreateQuotaCollection(
  [out] IFsrmCommittableCollection **collection
);

Parameters

collection [out]

An IFsrmCommittableCollection interface to the newly created collection. To add an object to the collection, call the IFsrmMutableCollection::Add method.

Return value

The method returns the following return values.

S_OK

Success

E_INVALIDARG

The parameter cannot be NULL.

Remarks

Using the collection to add more than one quota provides better performance than adding individual quotas. After adding the quotas to the collection, call the IFsrmCommittableCollection::Commit method.

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_FsrmQuotaManager is defined as 90dcab7f-347c-4bfc-b543-540326305fbe

IID

IID_IFsrmQuotaManager is defined as 8bb68c7d-19d8-4ffb-809e-be4fc1734014

IID_IFsrmQuotaManagerEx is defined as 4846cb01-d430-494f-abb4-b1054999fb09

See also

IFsrmQuotaManager
IFsrmQuotaManagerEx
FsrmQuotaManager
MSFT_FSRMQuota

 

 

Show: