IFsrmFileScreenTemplateManager::ExportTemplates method

Exports the templates as an XML string.

Syntax


HRESULT ExportTemplates(
  [in]   VARIANT *fileScreenTemplateNamesArray,
  [out]  BSTR *serializedFileScreenTemplates
);

Parameters

fileScreenTemplateNamesArray [in]

A variant that contains the names of the file screen templates to export. If NULL, the method exports all file screens.

serializedFileScreenTemplates [out]

The specified templates in XML format.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

S_FALSE

There were no items to export. The XML string contains empty group elements.

E_INVALIDARG

The fileScreenTemplateNamesArray parameter is NULL or the items in the variant array are not strings.

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 templates to a file. You can then copy the file to another computer and call the IFsrmFileScreenTemplateManager::ImportTemplates method to import the templates.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmScreen.h

DLL

SrmSvc.dll

CLSID

CLSID_FsrmFileScreenTemplateManager is defined as 243111df-e474-46aa-a054-eaa33edc292a

IID

IID_IFsrmFileScreenTemplateManager is defined as cfe36cba-1949-4e74-a14f-f1d580ceaf13

See also

IFsrmFileScreenTemplateManager
FsrmFileScreenTemplateManager

 

 

Show:
© 2014 Microsoft. All rights reserved.