IFsrmExportImport::ExportQuotaTemplates method (fsrm.h)

Exports one or more quota templates to the specified file.

Syntax

HRESULT ExportQuotaTemplates(
  [in] BSTR    filePath,
  [in] VARIANT *templateNamesSafeArray,
  [in] BSTR    remoteHost
);

Parameters

[in] filePath

The full path to the export file that will contain the quota templates in XML format. The string is limited to 260 characters.

[in] templateNamesSafeArray

A variant that contains the names of the quota templates to export. Set the variant to empty or NULL to export all templates.

Set the variant type to both VT_ARRAY and VT_VARIANT and the parray member to the SAFEARRAY of BSTRs.

[in] remoteHost

The name of the remote server. To specify the local server, set to an empty string.

Return value

This method can return the following error codes.

Remarks

The quota template name is specified when you call the IFsrmQuotaTemplateManager::CreateTemplate method. To enumerate the templates, call the IFsrmQuotaTemplateManager::EnumTemplates method.

You can also use the IFsrmQuotaTemplateManager::ExportTemplates method to export the templates.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008
Target Platform Windows
Header fsrm.h (include FsrmPipeline.h, FsrmQuota.h, FsrmReports.h, FsrmScreen.h, FsrmTlb.h)
DLL SrmSvc.dll

See also

FsrmExportImport

IFsrmExportImport