IFsrmExportImport::ImportFileGroups method (fsrm.h)

Imports one or more file groups from the specified file.

Syntax

HRESULT ImportFileGroups(
  [in]  BSTR                       filePath,
  [in]  VARIANT                    *fileGroupNamesSafeArray,
  [in]  BSTR                       remoteHost,
  [out] IFsrmCommittableCollection **fileGroups
);

Parameters

[in] filePath

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

[in] fileGroupNamesSafeArray

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

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.

[out] fileGroups

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

Return value

The method returns the following return values.

Remarks

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