ContentResult Class
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
Content |
Initializes a new instance of the ContentResult class. |
Content |
Gets or sets the content. |
Content |
Gets or sets the content encoding. |
Content |
Gets or sets the type of the content. |
Execute |
Enables processing of the result of an action method by a custom type that inherits from the ActionResult class. |