WebOperationContext.CreateTextResponse Método

Definición

Crea un mensaje con formato de texto.

Sobrecargas

CreateTextResponse(String, String, Encoding)

Crea un mensaje con formato de texto.

CreateTextResponse(String, String)

Crea un mensaje con formato de texto.

CreateTextResponse(Action<TextWriter>, String, Encoding)

Crea un mensaje con formato de texto.

CreateTextResponse(String)

Crea un mensaje de respuesta con formato de texto.

CreateTextResponse(Action<TextWriter>, String)

Crea un mensaje con formato de texto.

CreateTextResponse(String, String, Encoding)

Crea un mensaje con formato de texto.

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

Parámetros

text
String

El texto que se va a escribir en el mensaje.

contentType
String

El tipo de contenido del mensaje.

encoding
Encoding

La codificación que se va a utilizar.

Devoluciones

Un mensaje con formato de texto.

Se aplica a

CreateTextResponse(String, String)

Crea un mensaje con formato de texto.

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

Parámetros

text
String

El texto que se va a escribir en el mensaje.

contentType
String

El tipo de contenido del mensaje.

Devoluciones

Un mensaje con formato de texto.

Se aplica a

CreateTextResponse(Action<TextWriter>, String, Encoding)

Crea un mensaje con formato de texto.

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

Parámetros

textWriter
Action<TextWriter>

Un delegado que escribe los datos del texto.

contentType
String

El tipo de contenido del mensaje.

encoding
Encoding

La codificación que se va a utilizar.

Devoluciones

Un mensaje con formato de texto.

Se aplica a

CreateTextResponse(String)

Crea un mensaje de respuesta con formato de texto.

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

Parámetros

text
String

El texto que se va a escribir en el mensaje.

Devoluciones

Un mensaje con formato de texto.

Se aplica a

CreateTextResponse(Action<TextWriter>, String)

Crea un mensaje con formato de texto.

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

Parámetros

textWriter
Action<TextWriter>

Un delegado que escribe los datos del texto.

contentType
String

El tipo de contenido del mensaje.

Devoluciones

Un mensaje con formato de texto.

Se aplica a