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

状态。

返回

异步操作的结果。

适用于