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

Exports the quota templates as an XML string.

Syntax


HRESULT ExportTemplates(
  [in]  VARIANT *quotaTemplateNamesArray,
  [out] BSTR    *serializedQuotaTemplates
);

Parameters

quotaTemplateNamesArray [in]

A variant that contains the names of the quota templates to export. If NULL, the method exports all quotas.

serializedQuotaTemplates [out]

The specified templates in XML format.

Return value

The method returns the following return values.

S_OK

Success

S_FALSE

There were no items to export. The XML string contains empty group elements.

FSRM_E_NOT_FOUND

One of the names in the list was not valid. The XML string is empty.

E_INVALIDARG

The serializedQuotaTemplates parameter is NULL or the variant array does not contain strings.

Remarks

Typically, you use this method to save the templates to a file. You can then copy the file to another computer and call the IFsrmQuotaTemplateManager::ImportTemplates method to import the templates.

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: