CreateTextResponse Method (Action(TextWriter), String, Encoding)

WebOperationContext.CreateTextResponse Method (Action<TextWriter>, String, Encoding)

.NET Framework (current version)
 

Creates a text formatted message

Namespace:   System.ServiceModel.Web
Assembly:  System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public Message CreateTextResponse(
	Action<TextWriter> textWriter,
	string contentType,
	Encoding encoding
)

Parameters

textWriter
Type: System.Action<TextWriter>

A delegate that writes the text data.

contentType
Type: System.String

The content type of the message.

encoding
Type: System.Text.Encoding

The encoding to use.

Return Value

Type: System.ServiceModel.Channels.Message

A text formatted message.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft