Export (0) Print
Expand All

Controller.Content Method (String)

Creates a content result object by using a string.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

member Content : 
        content:string -> ContentResult

Parameters

content
Type: System.String
The content to write to the response.

Return Value

Type: System.Web.Mvc.ContentResult
The content result instance.

The result object that is prepared by this method is written to the response by the ASP.NET MVC framework when the object is executed.

Show:
© 2014 Microsoft