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
消息的内容类型。
返回
流格式的消息。