IFsrmExportImport::ImportFileScreenTemplates method (fsrm.h)
Imports one or more file screen templates from the specified file.
Syntax
HRESULT ImportFileScreenTemplates(
[in] BSTR filePath,
[in] VARIANT *templateNamesSafeArray,
[in] BSTR remoteHost,
[out] IFsrmCommittableCollection **templates
);
Parameters
[in] filePath
The full path to the file from which to import the file screen templates. The string is limited to 260 characters.
[in] templateNamesSafeArray
A variant that contains the names of the file screen 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.
[in] remoteHost
The name of the remote server. To specify the local server, set to an empty string.
[out] templates
An IFsrmCommittableCollection interface that contains a collection of IFsrmFileScreenTemplateImported interfaces. To complete the import, you must call the IFsrmFileScreenTemplateImported::Commit method.
Return value
The method returns the following return values.
Remarks
You can also use the IFsrmFileScreenTemplateManager::ImportTemplates 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 |