Click or drag to resize

RazorView(IRazorEngine, String, Object, Type, Type, Type, AdoDataConnection, ActionException, ReadonlyWebServerOptions) 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,
	Object model = null,
	Type modelType = null,
	Type pagedViewModelDataType = null,
	Type pagedViewModelHubType = null,
	AdoDataConnection database = null,
	Action<Exception> exceptionHandler = null,
	ReadonlyWebServerOptions webServerOptions = null
)
View Source

Parameters

razorEngine  IRazorEngine
IRazorEngine instance to use.
templateName  String
Name of template file, typically a .cshtml or .vbhtml file.
model  Object  (Optional)
Reference to model to use when rendering template.
modelType  Type  (Optional)
Type of model.
pagedViewModelDataType  Type  (Optional)
Type of data class for views based on paged view model, if any.
pagedViewModelHubType  Type  (Optional)
Type of SignalR hub for views based on paged view model, if any.
database  AdoDataConnection  (Optional)
AdoDataConnection to use, if any.
exceptionHandler  ActionException  (Optional)
Delegate to handle exceptions, if any.
webServerOptions  ReadonlyWebServerOptions  (Optional)
Web server options currently in use.
See Also