WebOperationContext.CreateTextResponse Metodo

Definizione

Crea un messaggio formattato di testo.

Overload

Nome Descrizione
CreateTextResponse(String, String, Encoding)

Crea un messaggio formattato di testo.

CreateTextResponse(String, String)

Crea un messaggio formattato di testo.

CreateTextResponse(Action<TextWriter>, String, Encoding)

Crea un messaggio formattato di testo.

CreateTextResponse(String)

Crea un messaggio di risposta formattato in testo.

CreateTextResponse(Action<TextWriter>, String)

Crea un messaggio formattato di testo.

CreateTextResponse(String, String, Encoding)

Crea un messaggio formattato di testo.

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

Parametri

text
String

Testo da scrivere nel messaggio.

contentType
String

Tipo di contenuto del messaggio.

encoding
Encoding

Codifica da usare.

Valori restituiti

Messaggio formattato in testo.

Si applica a

CreateTextResponse(String, String)

Crea un messaggio formattato di testo.

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

Parametri

text
String

Testo da scrivere nel messaggio.

contentType
String

Tipo di contenuto del messaggio.

Valori restituiti

Messaggio formattato in testo.

Si applica a

CreateTextResponse(Action<TextWriter>, String, Encoding)

Crea un messaggio formattato di testo.

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

Parametri

textWriter
Action<TextWriter>

Delegato che scrive i dati di testo.

contentType
String

Tipo di contenuto del messaggio.

encoding
Encoding

Codifica da usare.

Valori restituiti

Messaggio formattato in testo.

Si applica a

CreateTextResponse(String)

Crea un messaggio di risposta formattato in testo.

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

Parametri

text
String

Testo da scrivere nel messaggio.

Valori restituiti

Messaggio formattato in testo.

Si applica a

CreateTextResponse(Action<TextWriter>, String)

Crea un messaggio formattato di testo.

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

Parametri

textWriter
Action<TextWriter>

Delegato che scrive i dati di testo.

contentType
String

Tipo di contenuto per il messaggio.

Valori restituiti

Messaggio formattato in testo.

Si applica a