ContentResult Class
Definition
A ActionResult that when executed will produce a response with content.
public ref class ContentResult : Microsoft::AspNetCore::Mvc::ActionResult
public ref class ContentResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::Infrastructure::IStatusCodeActionResult
public class ContentResult : Microsoft.AspNetCore.Mvc.ActionResult
public class ContentResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
type ContentResult = class
inherit ActionResult
type ContentResult = class
inherit ActionResult
interface IStatusCodeActionResult
interface IActionResult
type ContentResult = class
inherit ActionResult
interface IActionResult
interface IStatusCodeActionResult
Public Class ContentResult
Inherits ActionResult
Public Class ContentResult
Inherits ActionResult
Implements IActionResult, IStatusCodeActionResult
- Inheritance
- Implements
Constructors
ContentResult() |
Properties
Content |
Gets or set the content representing the body of the response. |
ContentType |
Gets or sets the Content-Type header for the response. |
StatusCode |
Gets or sets the HTTP status code. |
Methods
ExecuteResult(ActionContext) |
Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method. (Inherited from ActionResult) |
ExecuteResultAsync(ActionContext) |