Show / Hide Table of Contents

Class HtmlRendererResult<TModel>

An IActionResult which renders an IHtmlRenderer<TModel> using a TModel

Inheritance
Object
HtmlRendererResult<TModel>
Implements
IActionResult
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Eighty.AspNetCore.Mvc.ActionResults
Assembly: Eighty.AspNetCore.dll
Syntax
public class HtmlRendererResult<TModel> : IActionResult
Type Parameters
Name Description
TModel

The model type

Constructors

| Improve this Doc View Source

HtmlRendererResult(IHtmlRenderer<TModel>, TModel, Nullable<HttpStatusCode>, Boolean)

Creates an HtmlRendererResult<TModel>

Declaration
public HtmlRendererResult(IHtmlRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = default (HttpStatusCode? ), bool renderAsync = false)
Parameters
Type Name Description
IHtmlRenderer<TModel> view

The view

TModel model

The model

System.Nullable<System.Net.HttpStatusCode> statusCode

A custom status code

Boolean renderAsync

Render the HTML into the response asynchronously

Properties

| Improve this Doc View Source

Model

The mode

Declaration
public TModel Model { get; }
Property Value
Type Description
TModel

The mode

| Improve this Doc View Source

RenderAsync

Render the HTML into the response asynchronously

Declaration
public bool RenderAsync { get; }
Property Value
Type Description
Boolean

Render the HTML into the response asynchronously

| Improve this Doc View Source

StatusCode

A custom status code

Declaration
public HttpStatusCode? StatusCode { get; }
Property Value
Type Description
System.Nullable<System.Net.HttpStatusCode>

A custom status code

| Improve this Doc View Source

View

The view

Declaration
public IHtmlRenderer<TModel> View { get; }
Property Value
Type Description
IHtmlRenderer<TModel>

The view

Methods

| Improve this Doc View Source

ExecuteResultAsync(ActionContext)

Declaration
public Task ExecuteResultAsync(ActionContext context)
Parameters
Type Name Description
ActionContext context
Returns
Type Description
Task

Implements

Microsoft.AspNetCore.Mvc.IActionResult
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX