Click or drag to resize

RazorView Properties

The RazorView type exposes the following members.

Properties
  Name Description
Public property Database Gets or sets database connection to provide to DataContext, if any.
Public property DataContextEngine Gets or sets IRazorEngine to use for the DataContext provided to the view; defaults to null.
Public property ExceptionHandler Gets or sets delegate used to handle exceptions.
Public property Item Gets query string parameter specified by key.
Public property Model Gets or sets reference to model to use when rendering template.
Public property ModelType Gets or sets type of Model.
Public property PagedViewModelDataType Gets or sets type of data model for views based on paged view model.
Public property PagedViewModelHubType Gets or sets type of SignalR hub for views based on paged view model.
Public property Parameters Gets a dictionary of query string parameters passed to rendered view.
Public property RazorEngine Gets reference to IRazorEngine used by this RazorView.
Public property TemplateName Gets or sets name of template file.
Public property ViewBag Gets reference to view bag used when rendering template.
Public property WebServerOptions Gets or sets the web server options currently in use.
Top
See Also