共用方式為


IFsrmQuotaTemplateManager.ImportTemplates Method (String, Object)

 

Imports the specified quota templates from an XML string.

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

Syntax

IFsrmCommittableCollection ImportTemplates(
    string serializedQuotaTemplates,
    [InAttribute] ref object quotaTemplateNamesArray = ""
)
IFsrmCommittableCollection^ ImportTemplates(
    String^ serializedQuotaTemplates,
    [InAttribute] Object^% quotaTemplateNamesArray = ""
)
abstract ImportTemplates : 
        serializedQuotaTemplates:string *
        quotaTemplateNamesArray:Object byref = "" -> IFsrmCommittableCollection
Function ImportTemplates (
    serializedQuotaTemplates As String,
    <InAttribute> ByRef quotaTemplateNamesArray As Object
) As IFsrmCommittableCollection

Parameters

  • serializedQuotaTemplates
    Type: System.String

    An XML string that represents one or more quota templates.

  • quotaTemplateNamesArray
    Type: System.Object

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

Return Value

Type: Microsoft.Storage.IFsrmCommittableCollection

Returns an IFsrmCommittableCollection that contains a collection of quota templates.

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

Remarks

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

FsrmQuotaTemplateManager
IFsrmQuotaTemplateManager Interface
Microsoft.Storage Namespace

Return to top