Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 Friend Overridable Function Content ( _
	content As String, _
	contentType As String, _
	contentEncoding As Encoding _
) As ContentResult
Dim content As String 
Dim contentType As String 
Dim contentEncoding As Encoding 
Dim returnValue As ContentResult 

returnValue = Me.Content(content, _
	contentType, contentEncoding)


Type: System.String
The content to write to the response.
Type: System.String
The content type (MIME type).
Type: System.Text.Encoding
The content encoding.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.