IFsrmFileGroupManager::ImportFileGroups method (fsrmscreen.h)
[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.]
Imports the specified file groups from an XML string.
Syntax
HRESULT ImportFileGroups(
[in] BSTR serializedFileGroups,
[in] VARIANT *fileGroupNamesArray,
[out] IFsrmCommittableCollection **fileGroups
);
Parameters
[in] serializedFileGroups
An XML string that represents one or more file groups.
[in] fileGroupNamesArray
A VARIANT that contains a SAFEARRAY of the names of the file groups to import. If NULL, the method imports all file groups.
[out] fileGroups
An IFsrmCommittableCollection interface that contains a collection of file groups.
Each item of the collection is a VARIANT of type VT_DISPATCH. Query the pdispVal member of the variant for the IFsrmFileGroupImported interface.
To add the file groups to FSRM, call the IFsrmCommittableCollection::Commit method.
Return value
The method returns the following return values.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | fsrmscreen.h |
DLL | SrmSvc.dll |