Edytuj

Udostępnij za pośrednictwem


WebOperationContext.CreateStreamResponse Method

Definition

Creates a stream formatted message.

Overloads

CreateStreamResponse(Action<Stream>, String)

Creates a stream formatted message.

CreateStreamResponse(Stream, String)

Creates a stream formatted message.

CreateStreamResponse(StreamBodyWriter, String)

Creates a stream formatted message.

CreateStreamResponse(Action<Stream>, String)

Creates a stream formatted message.

public:
 System::ServiceModel::Channels::Message ^ CreateStreamResponse(Action<System::IO::Stream ^> ^ streamWriter, System::String ^ contentType);
public System.ServiceModel.Channels.Message CreateStreamResponse (Action<System.IO.Stream> streamWriter, string contentType);
member this.CreateStreamResponse : Action<System.IO.Stream> * string -> System.ServiceModel.Channels.Message
Public Function CreateStreamResponse (streamWriter As Action(Of Stream), contentType As String) As Message

Parameters

streamWriter
Action<Stream>

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

contentType
String

The content type for the message.

Returns

A stream formatted message.

Applies to

CreateStreamResponse(Stream, String)

Creates a stream formatted message.

public:
 System::ServiceModel::Channels::Message ^ CreateStreamResponse(System::IO::Stream ^ stream, System::String ^ contentType);
public System.ServiceModel.Channels.Message CreateStreamResponse (System.IO.Stream stream, string contentType);
member this.CreateStreamResponse : System.IO.Stream * string -> System.ServiceModel.Channels.Message
Public Function CreateStreamResponse (stream As Stream, contentType As String) As Message

Parameters

stream
Stream

The stream containing the data to write to the stream.

contentType
String

The content type of the message.

Returns

A stream formatted message.

Applies to

CreateStreamResponse(StreamBodyWriter, String)

Creates a stream formatted message.

public:
 System::ServiceModel::Channels::Message ^ CreateStreamResponse(System::ServiceModel::Channels::StreamBodyWriter ^ bodyWriter, System::String ^ contentType);
public System.ServiceModel.Channels.Message CreateStreamResponse (System.ServiceModel.Channels.StreamBodyWriter bodyWriter, string contentType);
member this.CreateStreamResponse : System.ServiceModel.Channels.StreamBodyWriter * string -> System.ServiceModel.Channels.Message
Public Function CreateStreamResponse (bodyWriter As StreamBodyWriter, contentType As String) As Message

Parameters

bodyWriter
StreamBodyWriter

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

contentType
String

The content type of the message.

Returns

A stream formatted message.

Applies to