Freigeben über


Controller.Content Methode

Definition

Überlädt

Content(String)

Erstellt mit einer Zeichenfolge ein Inhaltsergebnisobjekt.

Content(String, String)

Erstellt ein Inhaltsergebnisobjekt anhand einer Zeichenfolge und des Inhaltstyps.

Content(String, String, Encoding)

Erstellt ein Inhaltsergebnisobjekt. Verwendet hierfür eine Zeichenfolge, den Inhaltstyp und die Inhaltscodierung.

Content(String)

Erstellt mit einer Zeichenfolge ein Inhaltsergebnisobjekt.

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

Parameter

content
String

Der Inhalt, der in die Antwort geschrieben werden soll.

Gibt zurück

Die Inhaltsergebnisinstanz.

Gilt für:

Content(String, String)

Erstellt ein Inhaltsergebnisobjekt anhand einer Zeichenfolge und des Inhaltstyps.

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

Parameter

content
String

Der Inhalt, der in die Antwort geschrieben werden soll.

contentType
String

Der Inhaltstyp (MIME-Typ).

Gibt zurück

Die Inhaltsergebnisinstanz.

Gilt für:

Content(String, String, Encoding)

Erstellt ein Inhaltsergebnisobjekt. Verwendet hierfür eine Zeichenfolge, den Inhaltstyp und die Inhaltscodierung.

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

Parameter

content
String

Der Inhalt, der in die Antwort geschrieben werden soll.

contentType
String

Der Inhaltstyp (MIME-Typ).

contentEncoding
Encoding

Die Inhaltscodierung.

Gibt zurück

Die Inhaltsergebnisinstanz.

Gilt für: