Teilen über


WebOperationContext.CreateTextResponse Methode

Definition

Erstellt eine Nachricht im Textformat.

Überlädt

CreateTextResponse(String, String, Encoding)

Erstellt eine Nachricht im Textformat.

CreateTextResponse(String, String)

Erstellt eine Nachricht im Textformat.

CreateTextResponse(Action<TextWriter>, String, Encoding)

Erstellt eine Nachricht im Textformat.

CreateTextResponse(String)

Erstellt eine Antwortnachricht im Textformat.

CreateTextResponse(Action<TextWriter>, String)

Erstellt eine Nachricht im Textformat.

CreateTextResponse(String, String, Encoding)

Erstellt eine Nachricht im Textformat.

public:
 System::ServiceModel::Channels::Message ^ CreateTextResponse(System::String ^ text, System::String ^ contentType, System::Text::Encoding ^ encoding);
public System.ServiceModel.Channels.Message CreateTextResponse (string text, string contentType, System.Text.Encoding encoding);
member this.CreateTextResponse : string * string * System.Text.Encoding -> System.ServiceModel.Channels.Message
Public Function CreateTextResponse (text As String, contentType As String, encoding As Encoding) As Message

Parameter

text
String

Der in die Nachricht zu schreibende Text.

contentType
String

Der Inhaltstyp der Nachricht.

encoding
Encoding

Die zu verwendende Codierung.

Gibt zurück

Message

Eine Nachricht im Textformat.

Gilt für

CreateTextResponse(String, String)

Erstellt eine Nachricht im Textformat.

public:
 System::ServiceModel::Channels::Message ^ CreateTextResponse(System::String ^ text, System::String ^ contentType);
public System.ServiceModel.Channels.Message CreateTextResponse (string text, string contentType);
member this.CreateTextResponse : string * string -> System.ServiceModel.Channels.Message
Public Function CreateTextResponse (text As String, contentType As String) As Message

Parameter

text
String

Der in die Nachricht zu schreibende Text.

contentType
String

Der Inhaltstyp der Nachricht.

Gibt zurück

Message

Eine Nachricht im Textformat.

Gilt für

CreateTextResponse(Action<TextWriter>, String, Encoding)

Erstellt eine Nachricht im Textformat.

public:
 System::ServiceModel::Channels::Message ^ CreateTextResponse(Action<System::IO::TextWriter ^> ^ textWriter, System::String ^ contentType, System::Text::Encoding ^ encoding);
public System.ServiceModel.Channels.Message CreateTextResponse (Action<System.IO.TextWriter> textWriter, string contentType, System.Text.Encoding encoding);
member this.CreateTextResponse : Action<System.IO.TextWriter> * string * System.Text.Encoding -> System.ServiceModel.Channels.Message
Public Function CreateTextResponse (textWriter As Action(Of TextWriter), contentType As String, encoding As Encoding) As Message

Parameter

textWriter
Action<TextWriter>

Ein Delegat, der die Textdaten schreibt.

contentType
String

Der Inhaltstyp der Nachricht.

encoding
Encoding

Die zu verwendende Codierung.

Gibt zurück

Message

Eine Nachricht im Textformat.

Gilt für

CreateTextResponse(String)

Erstellt eine Antwortnachricht im Textformat.

public:
 System::ServiceModel::Channels::Message ^ CreateTextResponse(System::String ^ text);
public System.ServiceModel.Channels.Message CreateTextResponse (string text);
member this.CreateTextResponse : string -> System.ServiceModel.Channels.Message
Public Function CreateTextResponse (text As String) As Message

Parameter

text
String

Der in die Nachricht zu schreibende Text.

Gibt zurück

Message

Eine Nachricht im Textformat.

Gilt für

CreateTextResponse(Action<TextWriter>, String)

Erstellt eine Nachricht im Textformat.

public:
 System::ServiceModel::Channels::Message ^ CreateTextResponse(Action<System::IO::TextWriter ^> ^ textWriter, System::String ^ contentType);
public System.ServiceModel.Channels.Message CreateTextResponse (Action<System.IO.TextWriter> textWriter, string contentType);
member this.CreateTextResponse : Action<System.IO.TextWriter> * string -> System.ServiceModel.Channels.Message
Public Function CreateTextResponse (textWriter As Action(Of TextWriter), contentType As String) As Message

Parameter

textWriter
Action<TextWriter>

Ein Delegat, der die Textdaten schreibt.

contentType
String

Der Inhaltstyp der Nachricht.

Gibt zurück

Message

Eine Nachricht im Textformat.

Gilt für