WebOperationContext.CreateStreamResponse 方法

定义

创建流格式的消息。

重载

CreateStreamResponse(Action<Stream>, String)

创建流格式的消息。

CreateStreamResponse(Stream, String)

创建流格式的消息。

CreateStreamResponse(StreamBodyWriter, String)

创建流格式的消息。

CreateStreamResponse(Action<Stream>, String)

创建流格式的消息。

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

参数

streamWriter
Action<Stream>

包含要写入到流的数据的流编写器。

contentType
String

消息的内容类型。

返回

Message

流格式的消息。

适用于

CreateStreamResponse(Stream, String)

创建流格式的消息。

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

参数

stream
Stream

包含要写入到流的数据的流。

contentType
String

消息的内容类型。

返回

Message

流格式的消息。

适用于

CreateStreamResponse(StreamBodyWriter, String)

创建流格式的消息。

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

参数

bodyWriter
StreamBodyWriter

包含要写入到消息的数据的流正文编写器。

contentType
String

消息的内容类型。

返回

Message

流格式的消息。

适用于