|
RazorView(IRazorEngine, String, Object, Type, Type, Type, AdoDataConnection, ActionException, ReadonlyWebServerOptions) Constructor
|
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax new :
razorEngine : IRazorEngine *
templateName : string *
?model : Object *
?modelType : Type *
?pagedViewModelDataType : Type *
?pagedViewModelHubType : Type *
?database : AdoDataConnection *
?exceptionHandler : Action<Exception> *
?webServerOptions : ReadonlyWebServerOptions
(* Defaults:
let _model = defaultArg model null
let _modelType = defaultArg modelType null
let _pagedViewModelDataType = defaultArg pagedViewModelDataType null
let _pagedViewModelHubType = defaultArg pagedViewModelHubType null
let _database = defaultArg database null
let _exceptionHandler = defaultArg exceptionHandler null
let _webServerOptions = defaultArg webServerOptions null
*)
-> RazorView
GSF.Web.Model.RazorView = function(razorEngine, templateName, model, modelType, pagedViewModelDataType, pagedViewModelHubType, database, exceptionHandler, webServerOptions);
View SourceParameters
- 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