WebOperationContext.CreateStreamResponse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應