Controller.Content Method (String, String, Encoding)
Creates a content result object by using a string, the content type, and content encoding.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
protected internal virtual ContentResult Content( string content, string contentType, Encoding contentEncoding )
Parameters
- content
- Type: System.String
The content to write to the response.
- contentType
- Type: System.String
The content type (MIME type).
- contentEncoding
- Type: System.Text.Encoding
The content encoding.
Show: