IFsrmQuotaManager::CreateQuotaCollection method (fsrmquota.h)
[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
[out] collection
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.
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
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | fsrmquota.h (include FsrmQuota.h, FsrmTlb.h) |
DLL | SrmSvc.dll |