Click or drag to resize

RazorView(IRazorEngine, String, ActionException) Constructor

Creates a new RazorView.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public RazorView(
	IRazorEngine razorEngine,
	string templateName,
	Action<Exception> exceptionHandler = null
)
View Source

Parameters

razorEngine  IRazorEngine
IRazorEngine instance to use.
templateName  String
Name of template file, typically a .cshtml or .vbhtml file.
exceptionHandler  ActionException  (Optional)
Delegate to handle exceptions, if any.
See Also