IFsrmExportImport::ExportFileGroups method

Exports one or more file groups to the specified file.

Syntax

HRESULT ExportFileGroups(
  BSTR    filePath,
  VARIANT *fileGroupNamesSafeArray,
  BSTR    remoteHost
);

Parameters

filePath

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

fileGroupNamesSafeArray

A variant that contains the names of the file groups to export. Set the variant to empty or NULL to export all file groups.

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.

Return Value

This method can return the following error codes.

Remarks

The file group name is specified when you call the IFsrmFileGroupManager::CreateFileGroup method. To enumerate the file groups, call the IFsrmFileGroupManager::EnumFileGroups method.

You can also use the IFsrmFileGroupManager::ExportFileGroups method to export 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