|
RazorEngineTLanguageRunCompile Method
|
Runs the given cached template. When the cache does not contain the template it will be compiled and cached beforehand.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax public void RunCompile(
ITemplateKey key,
TextWriter writer,
Type modelType = null,
Object model = null,
DynamicViewBag viewBag = null
)
Public Sub RunCompile (
key As ITemplateKey,
writer As TextWriter,
Optional modelType As Type = Nothing,
Optional model As Object = Nothing,
Optional viewBag As DynamicViewBag = Nothing
)
public:
virtual void RunCompile(
ITemplateKey^ key,
TextWriter^ writer,
Type^ modelType = nullptr,
Object^ model = nullptr,
DynamicViewBag^ viewBag = nullptr
) sealed
abstract RunCompile :
key : ITemplateKey *
writer : TextWriter *
?modelType : Type *
?model : Object *
?viewBag : DynamicViewBag
(* Defaults:
let _modelType = defaultArg modelType null
let _model = defaultArg model null
let _viewBag = defaultArg viewBag null
*)
-> unit
override RunCompile :
key : ITemplateKey *
writer : TextWriter *
?modelType : Type *
?model : Object *
?viewBag : DynamicViewBag
(* Defaults:
let _modelType = defaultArg modelType null
let _model = defaultArg model null
let _viewBag = defaultArg viewBag null
*)
-> unit
function RunCompile(key, writer, modelType, model, viewBag);
View SourceParameters
- key ITemplateKey
-
- writer TextWriter
-
- modelType Type (Optional)
-
- model Object (Optional)
-
- viewBag DynamicViewBag (Optional)
-
Implements
IRazorEngineService.RunCompile(ITemplateKey, TextWriter, Type, Object, DynamicViewBag)See Also