MessageEncoder.BeginWriteMessage(Message, Stream, AsyncCallback, Object) 方法

定义

为有指定的消息、流、恢复和状态的消息编码器,启动消息写入。Starts the writing of message for the message encoder with specified message, stream, callback and state.

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

消息。The message.

stream
Stream

流。The stream.

callback
AsyncCallback

回调。The callback.

state
Object

状态。The state.

返回

IAsyncResult

异步操作的结果。The asynchronous result of the operation.

适用于