Controller.Content Method (String, String)
Creates a content result object by using a string and the content type.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Protected Friend Function Content ( _ content As String, _ contentType As String _ ) As ContentResult 'Usage Dim content As String Dim contentType As String Dim returnValue As ContentResult returnValue = Me.Content(content, _ contentType)
Parameters
- content
- Type: System.String
The content to write to the response.
- contentType
- Type: System.String
The content type (MIME type).
Show: