ContentResult ContentResult ContentResult Class

Definition

Represents a user-defined content type that is the result of an action method.

public class ContentResult : System.Web.Mvc.ActionResult
type ContentResult = class
    inherit ActionResult
Public Class ContentResult
Inherits ActionResult
Inheritance
ContentResultContentResultContentResult

Constructors

ContentResult() ContentResult() ContentResult()

Initializes a new instance of the ContentResult class.

Properties

Content Content Content

Gets or sets the content.

ContentEncoding ContentEncoding ContentEncoding

Gets or sets the content encoding.

ContentType ContentType ContentType

Gets or sets the type of the content.

Methods

ExecuteResult(ControllerContext) ExecuteResult(ControllerContext) ExecuteResult(ControllerContext)

Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.

Applies to