Class HtmlResult
An IActionResult which renders some Html
Implements
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 HtmlResult : IActionResult
Constructors
| Improve this Doc View SourceHtmlResult(Html, Nullable<HttpStatusCode>, Boolean)
Creates an HtmlResult
Declaration
public HtmlResult(Html html, HttpStatusCode? statusCode = default (HttpStatusCode? ), bool renderAsync = false)
Parameters
Type | Name | Description |
---|---|---|
Html | html | The Html |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Boolean | renderAsync | Render the HTML into the response asynchronously |
Properties
| Improve this Doc View SourceHtml
The Html
Declaration
public Html Html { get; }
Property Value
Type | Description |
---|---|
Html | The Html |
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 |
StatusCode
A custom status code
Declaration
public HttpStatusCode? StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Net.HttpStatusCode> | A custom status code |
Methods
| Improve this Doc View SourceExecuteResultAsync(ActionContext)
Declaration
public Task ExecuteResultAsync(ActionContext context)
Parameters
Type | Name | Description |
---|---|---|
ActionContext | context |
Returns
Type | Description |
---|---|
Task |