CreateTextResponse Method (String, String)

WebOperationContext.CreateTextResponse Method (String, String)

.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
)

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
Available since 4.0
Return to top
Show:
© 2016 Microsoft