Condividi tramite


ManagementPack.ProcessTemplate Method (ManagementPackTemplate, String, ManagementPackReferenceCollection)

Processes the provided template with the given configuration and inserts the results into this management pack.

Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in microsoft.enterprisemanagement.core.dll)

Usage

'Usage
Dim instance As ManagementPack
Dim template As ManagementPackTemplate
Dim configuration As String
Dim references As ManagementPackReferenceCollection

instance.ProcessTemplate(template, configuration, references)

Syntax

'Declaration
Public Sub ProcessTemplate ( _
    template As ManagementPackTemplate, _
    configuration As String, _
    references As ManagementPackReferenceCollection _
)
public void ProcessTemplate (
    ManagementPackTemplate template,
    string configuration,
    ManagementPackReferenceCollection references
)
public:
void ProcessTemplate (
    ManagementPackTemplate^ template, 
    String^ configuration, 
    ManagementPackReferenceCollection^ references
)
public void ProcessTemplate (
    ManagementPackTemplate template, 
    String configuration, 
    ManagementPackReferenceCollection references
)
public function ProcessTemplate (
    template : ManagementPackTemplate, 
    configuration : String, 
    references : ManagementPackReferenceCollection
)

Parameters

  • template
    The template to process.
  • configuration
    The configuration for the template.
  • references
    Additional references defined in the configuration of the template. Optional.

Exceptions

Exception type Condition
XmlSchemaException

The configuration was not valid for this template.

Exception

Processing the template failed. See inner exception for detailed information.

ArgumentNullException

The template or configuration was null.

ArgumentOutOfRangeException

This occurs when configuration.Length = 0

ArgumentException

Additional references contained nonvalid references.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ManagementPack Class
ManagementPack Members
Microsoft.EnterpriseManagement.Configuration Namespace