Langue

WebOperationContext.CreateTextResponse Méthode

Définition

Crée un message au format texte.

Surcharges

Nom Description
CreateTextResponse(String, String, Encoding)

Crée un message au format texte.

CreateTextResponse(String, String)

Crée un message au format texte.

CreateTextResponse(Action<TextWriter>, String, Encoding)

Crée un message au format texte.

CreateTextResponse(String)

Crée un message de réponse au format texte.

CreateTextResponse(Action<TextWriter>, String)

Crée un message au format texte.

CreateTextResponse(String, String, Encoding)

Crée un message au format texte.

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

Paramètres

text
String

Texte à écrire dans le message.

contentType
String

Type de contenu du message.

encoding
Encoding

Encodage à utiliser.

Retours

Message au format texte.

S’applique à

CreateTextResponse(String, String)

Crée un message au format texte.

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

Paramètres

text
String

Texte à écrire dans le message.

contentType
String

Type de contenu du message.

Retours

Message au format texte.

S’applique à

CreateTextResponse(Action<TextWriter>, String, Encoding)

Crée un message au format texte.

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

Paramètres

textWriter
Action<TextWriter>

Délégué qui écrit les données texte.

contentType
String

Type de contenu du message.

encoding
Encoding

Encodage à utiliser.

Retours

Message au format texte.

S’applique à

CreateTextResponse(String)

Crée un message de réponse au format texte.

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

Paramètres

text
String

Texte à écrire dans le message.

Retours

Message au format texte.

S’applique à

CreateTextResponse(Action<TextWriter>, String)

Crée un message au format texte.

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

Paramètres

textWriter
Action<TextWriter>

Délégué qui écrit les données texte.

contentType
String

Type de contenu du message.

Retours

Message au format texte.

S’applique à