|
RazorEngineTLanguagePreCompile(Type, ActionException, String) Method
|
Kicks off a task to pre-compile Razor templates.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.248-beta
Syntaxpublic Task PreCompile(
Type modelType,
Action<Exception> exceptionHandler,
string templatePath
)
Public Function PreCompile (
modelType As Type,
exceptionHandler As Action(Of Exception),
templatePath As String
) As Task
public:
Task^ PreCompile(
Type^ modelType,
Action<Exception^>^ exceptionHandler,
String^ templatePath
)
member PreCompile :
modelType : Type *
exceptionHandler : Action<Exception> *
templatePath : string -> Task
function PreCompile(modelType, exceptionHandler, templatePath);
View SourceParameters
- modelType Type
- The type of the model used for the application.
- exceptionHandler ActionException
- Exception handler used to report issues, if any.
- templatePath String
- Template path is use; otherwise, set to null to use default path.
Return Value
Task
See Also