Export (0) Print
Expand All

WebOperationContext.CreateTextResponse Method (String, String)

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
)

Parameters

text
Type: System.String

The text to write to the message.

contentType
Type: System.String

The content type of the message.

Return Value

Type: System.ServiceModel.Channels.Message
A text formatted message.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft