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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈