Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Content(String) |
Creates a content result object by using a string. |
Content(String, String) |
Creates a content result object by using a string and the content type. |
Content(String, String, Encoding) |
Creates a content result object by using a string, the content type, and content encoding. |
Creates a content result object by using a string.
protected internal System.Web.Mvc.ContentResult Content(string content);
member this.Content : string -> System.Web.Mvc.ContentResult
Protected Friend Function Content (content As String) As ContentResult
The content to write to the response.
The content result instance.
Creates a content result object by using a string and the content type.
protected internal System.Web.Mvc.ContentResult Content(string content, string contentType);
member this.Content : string * string -> System.Web.Mvc.ContentResult
Protected Friend Function Content (content As String, contentType As String) As ContentResult
The content to write to the response.
The content type (MIME type).
The content result instance.
Creates a content result object by using a string, the content type, and content encoding.
protected internal virtual System.Web.Mvc.ContentResult Content(string content, string contentType, System.Text.Encoding contentEncoding);
abstract member Content : string * string * System.Text.Encoding -> System.Web.Mvc.ContentResult
override this.Content : string * string * System.Text.Encoding -> System.Web.Mvc.ContentResult
Protected Friend Overridable Function Content (content As String, contentType As String, contentEncoding As Encoding) As ContentResult
The content to write to the response.
The content type (MIME type).
The content encoding.
The content result instance.
Please sign in to use this experience.
Sign in