Export (0) Print
Expand All

WebOperationContext.CreateStreamResponse Method (Stream, String)

Creates a stream formatted message.

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

public Message CreateStreamResponse(
	Stream stream,
	string contentType
)

Parameters

stream
Type: System.IO.Stream

The stream containing the data to write to the stream.

contentType
Type: System.String

The content type of the message.

Return Value

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

.NET Framework

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