ExportFileGroups method
Collapse the table of content
Expand the table of content

IFsrmFileGroupManager::ExportFileGroups method

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMFileGroup class.]

Exports the specified file groups as an XML string.

Syntax


HRESULT ExportFileGroups(
  [in]  VARIANT *fileGroupNamesArray,
  [out] BSTR    *serializedFileGroups
);

Parameters

fileGroupNamesArray [in]

A VARIANT that contains a SAFEARRAY of the names of the file groups to export. If NULL, the method exports all file groups.

serializedFileGroups [out]

The specified file groups 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.

E_INVALIDARG

The serializedFileGroups parameter is NULL or the fileGroupNamesArray parameter is not a variant array of BSTRs.

FSRM_E_NOT_FOUND

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

Remarks

Typically, you use this method to save the file groups information to a file. You can then copy the file to another computer and call the IFsrmFileGroupManager::ImportFileGroups method to import the file groups.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmScreen.h

DLL

SrmSvc.dll

CLSID

CLSID_FsrmFileGroupManager is defined as 8f1363f6-656f-4496-9226-13aecbd7718f

IID

IID_IFsrmFileGroupManager is defined as 426677d5-018c-485c-8a51-20b86d00bdc4

See also

IFsrmFileGroupManager
FsrmFileGroupManager
MSFT_FSRMFileGroup

 

 

Show:
© 2016 Microsoft