共用方式為


FsrmQuotaTemplateManagerClass.ImportTemplates Method (String, Object)

 

Imports the specified quota templates from an XML string.

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

Syntax

public virtual IFsrmCommittableCollection ImportTemplates(
    string serializedQuotaTemplates,
    [InAttribute] ref object quotaTemplateNamesArray = ""
)
public:
virtual IFsrmCommittableCollection^ ImportTemplates(
    String^ serializedQuotaTemplates,
    [InAttribute] Object^% quotaTemplateNamesArray = ""
)
abstract ImportTemplates : 
        serializedQuotaTemplates:string *
        quotaTemplateNamesArray:Object byref = "" -> IFsrmCommittableCollection
override ImportTemplates : 
        serializedQuotaTemplates:string *
        quotaTemplateNamesArray:Object byref = "" -> IFsrmCommittableCollection
Public Overridable 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 a IFsrmCommittableCollection interface 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.

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

IFsrmQuotaTemplateManager.ImportTemplates(String, Object)

See Also

IFsrmQuotaTemplateManager
FsrmQuotaTemplateManager
FsrmQuotaTemplateManagerClass Class
Microsoft.Storage Namespace

Return to top