語言

WebOperationContext.CreateStreamResponse 方法

定義

建立串流格式的訊息。

多載

名稱 Description
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

訊息的內容類型。

傳回

一個串流格式的訊息。

適用於

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

訊息的內容類型。

傳回

一個串流格式的訊息。

適用於

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

訊息的內容類型。

傳回

一個串流格式的訊息。

適用於