Click or drag to resize

RazorView Class

Defines a view class for data context based Razor template implementations.
Inheritance Hierarchy
SystemObject
  GSF.Web.ModelRazorView

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public class RazorView
View Source

The RazorView type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyDatabase Gets or sets database connection to provide to DataContext, if any.
Public propertyDataContextEngine Gets or sets IRazorEngine to use for the DataContext provided to the view; defaults to null.
Public propertyExceptionHandler Gets or sets delegate used to handle exceptions.
Public propertyItem Gets query string parameter specified by key.
Public propertyModel Gets or sets reference to model to use when rendering template.
Public propertyModelType Gets or sets type of Model.
Public propertyPagedViewModelDataType Gets or sets type of data model for views based on paged view model.
Public propertyPagedViewModelHubType Gets or sets type of SignalR hub for views based on paged view model.
Public propertyParameters Gets a dictionary of query string parameters passed to rendered view.
Public propertyRazorEngine Gets reference to IRazorEngine used by this RazorView.
Public propertyTemplateName Gets or sets name of template file.
Public propertyViewBag Gets reference to view bag used when rendering template.
Public propertyWebServerOptions Gets or sets the web server options currently in use.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecute Compiles and executes view template.
Public methodExecute(HttpRequestMessage, HttpResponseMessage) Compiles and executes view template for specified request message and post data.
Public methodExecuteAsync Asynchronously compiles and executes view template for specified request message and post data.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also