Share via


Controller.Content メソッド

定義

オーバーロード

Content(String)

文字列を使用してコンテンツの結果オブジェクトを作成します。

Content(String, String)

文字列およびコンテンツ タイプを使用してコンテンツの結果オブジェクトを作成します。

Content(String, String, Encoding)

文字列、コンテンツ タイプ、およびコンテンツ エンコーディングを使用してコンテンツの結果オブジェクトを作成します。

Content(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

パラメーター

content
String

応答に書き込むコンテンツ。

戻り値

コンテンツの結果のインスタンス。

適用対象

Content(String, String)

文字列およびコンテンツ タイプを使用してコンテンツの結果オブジェクトを作成します。

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

パラメーター

content
String

応答に書き込むコンテンツ。

contentType
String

コンテンツ タイプ (MIME タイプ)。

戻り値

コンテンツの結果のインスタンス。

適用対象

Content(String, String, 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

パラメーター

content
String

応答に書き込むコンテンツ。

contentType
String

コンテンツ タイプ (MIME タイプ)。

contentEncoding
Encoding

コンテンツ エンコーディング。

戻り値

コンテンツの結果のインスタンス。

適用対象