Class HtmlRendererResult<TModel>
An System.Web.Mvc.ActionResult which renders an IHtmlRenderer<TModel> using a TModel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Eighty.AspNet.Mvc.ActionResults
Assembly: Eighty.AspNet.Mvc.dll
Syntax
public class HtmlRendererResult<TModel> : ActionResult
Type Parameters
Name | Description |
---|---|
TModel | The model type |
Constructors
| Improve this Doc View SourceHtmlRendererResult(IHtmlRenderer<TModel>, TModel, Nullable<HttpStatusCode>)
Creates an HtmlRendererResult<TModel>
Declaration
public HtmlRendererResult(IHtmlRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
IHtmlRenderer<TModel> | view | The view |
TModel | model | The model |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Properties
| Improve this Doc View SourceModel
The mode
Declaration
public TModel Model { get; }
Property Value
Type | Description |
---|---|
TModel | The mode |
StatusCode
A custom status code
Declaration
public HttpStatusCode? StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Net.HttpStatusCode> | A custom status code |
View
The view
Declaration
public IHtmlRenderer<TModel> View { get; }
Property Value
Type | Description |
---|---|
IHtmlRenderer<TModel> | The view |
Methods
| Improve this Doc View SourceExecuteResult(ControllerContext)
Declaration
public override void ExecuteResult(ControllerContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ControllerContext | context |
Overrides
System.Web.Mvc.ActionResult.ExecuteResult(System.Web.Mvc.ControllerContext)