DirectiveBlock Class
Represents a directive block in a template.
public class DirectiveBlock : TemplateBlock- Inheritance
TemplateBlockDirectiveBlock
Constructors
| Name | Description |
|---|---|
| DirectiveBlock(Template, string, int, string, string) | Initializes a new instance of the DirectiveBlock class. |
DirectiveBlock(Template, string, int, string, string)
DirectiveBlock.csInitializes a new instance of the DirectiveBlock class.
Properties
| Name | Description |
|---|---|
| Name | Gets the directive name. |
| Value | Gets the directive value. |
Value
DirectiveBlock.csMethods
| Name | Description |
|---|---|
| ApplyDirective() | Applies the directive to the template. |
| BuildCode() | Builds the C# code for this directive block. |
ApplyDirective()
DirectiveBlock.csApplies the directive to the template.
public virtual void ApplyDirective()