WebOperationContext.CreateStreamResponse Method (StreamBodyWriter, String)

.NET Framework (current version)
 

Creates a stream formatted message.

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

public Message CreateStreamResponse(
	StreamBodyWriter bodyWriter,
	string contentType
)

Parameters

bodyWriter
Type: System.ServiceModel.Channels.StreamBodyWriter

The stream body writer containing the data to write to the message..

contentType
Type: System.String

The content type of the message

Return Value

Type: System.ServiceModel.Channels.Message

A stream formatted message.

.NET Framework
Available since 4.0
Return to top
Show: