共用方式為


MessageEncoder.BeginWriteMessage 方法

定義

開始以指定的訊息、資料流、回呼及狀態寫入訊息編碼器的訊息。

public:
 virtual IAsyncResult ^ BeginWriteMessage(System::ServiceModel::Channels::Message ^ message, System::IO::Stream ^ stream, AsyncCallback ^ callback, System::Object ^ state);
public virtual IAsyncResult BeginWriteMessage (System.ServiceModel.Channels.Message message, System.IO.Stream stream, AsyncCallback callback, object state);
abstract member BeginWriteMessage : System.ServiceModel.Channels.Message * System.IO.Stream * AsyncCallback * obj -> IAsyncResult
override this.BeginWriteMessage : System.ServiceModel.Channels.Message * System.IO.Stream * AsyncCallback * obj -> IAsyncResult
Public Overridable Function BeginWriteMessage (message As Message, stream As Stream, callback As AsyncCallback, state As Object) As IAsyncResult

參數

message
Message

訊息。

stream
Stream

資料流。

callback
AsyncCallback

回呼。

state
Object

狀態。

傳回

作業的非同步結果。

適用於