IFsrmExportImport::ImportQuotaTemplates method

Imports one or more quota templates from the specified file.

Syntax

HRESULT ImportQuotaTemplates(
  BSTR                       filePath,
  VARIANT                    *templateNamesSafeArray,
  BSTR                       remoteHost,
  IFsrmCommittableCollection **templates
);

Parameters

filePath

The full path to the file from which to import the quota templates. The string is limited to 260 characters.

templateNamesSafeArray

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

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

remoteHost

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

templates

An IFsrmCommittableCollection interface that contains a collection of IFsrmQuotaTemplateImported interfaces. To complete the import, you must call the IFsrmQuotaTemplateImported::Commit method.

Return Value

The method returns the following return values.

Remarks

You can also use the IFsrmQuotaTemplateManager::ImportTemplates method to import the templates.

Requirements

   
Windows version None supported 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