WebOperationContext.CreateTextResponse Method (String, 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(
	string text,
	string contentType,
	Encoding encoding
)

Parameters

text
Type: System.String

The text to write to the message.

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: