InvokeTemplate(string, TemplateProvider, object?)
Calls another template method. This overload accepts a TemplateProvider.
Declaration
[CompileTime(true, null)]
public static void InvokeTemplate(string templateName, TemplateProvider templateProvider, object? args = null)Parameters
| Type | Name | Description |
|---|---|---|
| string | templateName | The name of the called template method. |
| TemplateProvider | templateProvider | |
| object | args | Compile-time template arguments that will be passed to the template. |
InvokeTemplate(string, ITemplateProvider?, object?)
Calls another template method. This overload accepts an ITemplateProvider.
Declaration
[CompileTime(true, null)]
public static void InvokeTemplate(string templateName, ITemplateProvider? templateProvider = null, object? args = null)Parameters
| Type | Name | Description |
|---|---|---|
| string | templateName | The name of the called template method. |
| ITemplateProvider | templateProvider | An optional TemplateProvider, or default for the current template provider (usually the current aspect). |
| object | args | Compile-time template arguments that will be passed to the template. |
InvokeTemplate(TemplateInvocation, object?)
Calls another template method.
Declaration
[CompileTime(true, null)]
public static void InvokeTemplate(TemplateInvocation templateInvocation, object? args = null)Parameters
| Type | Name | Description |
|---|---|---|
| TemplateInvocation | templateInvocation | Object that contains information about the called template method. |
| object | args | Compile-time template arguments that will be passed to the template, in addition to arguments from |