IFsrmFileScreenTemplateManager.ImportTemplates Method (String, Object)
Imports the specified file screen templates from an XML string.
Namespace: Microsoft.Storage
Assembly: srmlib (in srmlib.dll)
Syntax
IFsrmCommittableCollection ImportTemplates(
string serializedFileScreenTemplates,
[InAttribute] ref object fileScreenTemplateNamesArray = ""
)
IFsrmCommittableCollection^ ImportTemplates(
String^ serializedFileScreenTemplates,
[InAttribute] Object^% fileScreenTemplateNamesArray = ""
)
abstract ImportTemplates :
serializedFileScreenTemplates:string *
fileScreenTemplateNamesArray:Object byref = "" -> IFsrmCommittableCollection
Function ImportTemplates (
serializedFileScreenTemplates As String,
<InAttribute> ByRef fileScreenTemplateNamesArray As Object
) As IFsrmCommittableCollection
Parameters
serializedFileScreenTemplates
Type: System.StringAn XML string that represents one or more file screen templates.
fileScreenTemplateNamesArray
Type: System.ObjectA 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.
See Also
FsrmFileScreenTemplateManager
IFsrmFileScreenTemplateManager Interface
Microsoft.Storage Namespace
Return to top