MessageEncoder.WriteMessageAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WriteMessageAsync(Message, Stream) | |
WriteMessageAsync(Message, Int32, BufferManager, Int32) |
WriteMessageAsync(Message, Stream)
public:
virtual System::Threading::Tasks::ValueTask WriteMessageAsync(System::ServiceModel::Channels::Message ^ message, System::IO::Stream ^ stream);
public virtual System.Threading.Tasks.ValueTask WriteMessageAsync (System.ServiceModel.Channels.Message message, System.IO.Stream stream);
abstract member WriteMessageAsync : System.ServiceModel.Channels.Message * System.IO.Stream -> System.Threading.Tasks.ValueTask
override this.WriteMessageAsync : System.ServiceModel.Channels.Message * System.IO.Stream -> System.Threading.Tasks.ValueTask
Public Overridable Function WriteMessageAsync (message As Message, stream As Stream) As ValueTask
參數
- message
- Message
- stream
- Stream
傳回
適用於
WriteMessageAsync(Message, Int32, BufferManager, Int32)
public:
virtual System::Threading::Tasks::ValueTask<ArraySegment<System::Byte>> WriteMessageAsync(System::ServiceModel::Channels::Message ^ message, int maxMessageSize, System::ServiceModel::Channels::BufferManager ^ bufferManager, int messageOffset);
public virtual System.Threading.Tasks.ValueTask<ArraySegment<byte>> WriteMessageAsync (System.ServiceModel.Channels.Message message, int maxMessageSize, System.ServiceModel.Channels.BufferManager bufferManager, int messageOffset);
abstract member WriteMessageAsync : System.ServiceModel.Channels.Message * int * System.ServiceModel.Channels.BufferManager * int -> System.Threading.Tasks.ValueTask<ArraySegment<byte>>
override this.WriteMessageAsync : System.ServiceModel.Channels.Message * int * System.ServiceModel.Channels.BufferManager * int -> System.Threading.Tasks.ValueTask<ArraySegment<byte>>
Public Overridable Function WriteMessageAsync (message As Message, maxMessageSize As Integer, bufferManager As BufferManager, messageOffset As Integer) As ValueTask(Of ArraySegment(Of Byte))
參數
- message
- Message
- maxMessageSize
- Int32
- bufferManager
- BufferManager
- messageOffset
- Int32