WebOperationContext.CreateStreamResponse Method (Stream, String)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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