|
RazorView(IRazorEngine, String, ActionException) Constructor
|
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.248-beta
Syntaxpublic RazorView(
IRazorEngine razorEngine,
string templateName,
Action<Exception> exceptionHandler = null
)
Public Sub New (
razorEngine As IRazorEngine,
templateName As String,
Optional exceptionHandler As Action(Of Exception) = Nothing
)
public:
RazorView(
IRazorEngine^ razorEngine,
String^ templateName,
Action<Exception^>^ exceptionHandler = nullptr
)
new :
razorEngine : IRazorEngine *
templateName : string *
?exceptionHandler : Action<Exception>
(* Defaults:
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> RazorView
GSF.Web.Model.RazorView = function(razorEngine, templateName, exceptionHandler);
View SourceParameters
- 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