EnterpriseManagementObject.ApplyTemplate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Applies the given template to this instance.
Overloads
ApplyTemplate(ManagementPackObjectTemplate) |
Applies the given template to this instance. |
ApplyTemplate(ManagementPackObjectTemplate, ObjectTemplateCallback) |
Applies the given template to this instance. |
ApplyTemplate(ManagementPackObjectTemplate)
Applies the given template to this instance.
public:
void ApplyTemplate(Microsoft::EnterpriseManagement::Configuration::ManagementPackObjectTemplate ^ template);
public void ApplyTemplate (Microsoft.EnterpriseManagement.Configuration.ManagementPackObjectTemplate template);
member this.ApplyTemplate : Microsoft.EnterpriseManagement.Configuration.ManagementPackObjectTemplate -> unit
Public Sub ApplyTemplate (template As ManagementPackObjectTemplate)
Parameters
- template
- ManagementPackObjectTemplate
The template to apply.
Applies to
ApplyTemplate(ManagementPackObjectTemplate, ObjectTemplateCallback)
Applies the given template to this instance.
public:
void ApplyTemplate(Microsoft::EnterpriseManagement::Configuration::ManagementPackObjectTemplate ^ template, Microsoft::EnterpriseManagement::Common::ObjectTemplateCallback ^ callback);
public void ApplyTemplate (Microsoft.EnterpriseManagement.Configuration.ManagementPackObjectTemplate template, Microsoft.EnterpriseManagement.Common.ObjectTemplateCallback callback);
member this.ApplyTemplate : Microsoft.EnterpriseManagement.Configuration.ManagementPackObjectTemplate * Microsoft.EnterpriseManagement.Common.ObjectTemplateCallback -> unit
Public Sub ApplyTemplate (template As ManagementPackObjectTemplate, callback As ObjectTemplateCallback)
Parameters
- template
- ManagementPackObjectTemplate
The template to apply.
- callback
- ObjectTemplateCallback
The callback method called when the template is applied.
Exceptions
The callback
parameter is a null reference (Nothing in Visual Basic).