WebOperationContext.CreateStreamResponse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立資料流格式化的訊息。
多載
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
參數
- 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
訊息的內容型別。
傳回
資料流格式化的訊息。