FsrmFileScreenTemplateManagerClass.ImportTemplates Method (String, Object)

 

Imports the specified file screen templates from an XML string.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

public virtual IFsrmCommittableCollection ImportTemplates(
    string serializedFileScreenTemplates,
    [InAttribute] ref object fileScreenTemplateNamesArray = ""
)
public:
virtual IFsrmCommittableCollection^ ImportTemplates(
    String^ serializedFileScreenTemplates,
    [InAttribute] Object^% fileScreenTemplateNamesArray = ""
)
abstract ImportTemplates : 
        serializedFileScreenTemplates:string *
        fileScreenTemplateNamesArray:Object byref = "" -> IFsrmCommittableCollection
override ImportTemplates : 
        serializedFileScreenTemplates:string *
        fileScreenTemplateNamesArray:Object byref = "" -> IFsrmCommittableCollection
Public Overridable Function ImportTemplates (
    serializedFileScreenTemplates As String,
    <InAttribute> ByRef fileScreenTemplateNamesArray As Object
) As IFsrmCommittableCollection

Parameters

  • serializedFileScreenTemplates
    Type: System.String

    An XML string that represents one or more file screen templates.

  • fileScreenTemplateNamesArray
    Type: System.Object

    A VARIANT that contains a SAFEARRAY of the names of the templates to import. If NULL, the method imports all templates.

Return Value

Type: Microsoft.Storage.IFsrmCommittableCollection

Returns a IFsrmCommittableCollection interface that contains a collection of file screen templates.

Each item of the collection is a VARIANT of type VT_DISPATCH. Query the pdispVal member of the variant for the IFsrmFileScreenTemplateImported interface.

To add the templates to FSRM, call the Commit method. To add the templates to FSRM and propagate the changes to objects that were derived from the template, call the CommitAndUpdateDerived method on each item in the collection.

Implements

IFsrmFileScreenTemplateManager.ImportTemplates(String, Object)

See Also

FsrmFileScreenTemplateManager
IFsrmFileScreenTemplateManager
FsrmFileScreenTemplateManagerClass Class
Microsoft.Storage Namespace

Return to top