共用方式為


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

資料流格式化的訊息。

適用於