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

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

Parameters

textWriter
Type: System.Action<TextWriter>

A delegate that writes the text data.

contentType
Type: System.String

The content type for the message.

Return Value

Type: System.ServiceModel.Channels.Message

A text formatted message.

.NET Framework
Available since 4.0
Return to top
Show: