ExecuteContext
Defined in RazorEngine.dll.
Defines a context for tracking template execution.
Constructors
Constructor | Description |
new()
Signature: unit -> unit
|
Creates a new instance of ExecuteContext with an empty ViewBag. |
new(viewBag)
Signature: viewBag:DynamicViewBag -> unit
|
Creates a new instance of DynamicViewBag, setting initial values in the ViewBag. |
Instance members
Instance member | Description |
DefineSection(name, action)
Signature: (name:string * action:Action) -> unit
|
Defines a section used in layouts. |
GetSectionDelegate(name)
Signature: name:string -> Action
|
Gets the section delegate. |
ViewBag()
Signature: unit -> obj
|
Gets the viewbag that allows sharing state. |