ContentResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Constructors
ContentResult() |
Initializes a new instance of the ContentResult class. |
Properties
Content |
Gets or sets the content. |
ContentEncoding |
Gets or sets the content encoding. |
ContentType |
Gets or sets the type of the content. |
Methods
ExecuteResult(ControllerContext) |
Enables processing of the result of an action method by a custom type that inherits from the ActionResult class. |