ClientBase<TChannel>.ChannelBase<T>.IOutputChannel.BeginSend 方法

定义

开始一个发送消息的异步操作。

重载

IOutputChannel.BeginSend(Message, AsyncCallback, Object)

开始一个异步操作,向输出通道的目标传输一条消息。

IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object)

开始一个异步操作,在指定时间间隔内向输出通道的目标传输消息。

IOutputChannel.BeginSend(Message, AsyncCallback, Object)

开始一个异步操作,向输出通道的目标传输一条消息。

 virtual IAsyncResult ^ System.ServiceModel.Channels.IOutputChannel.BeginSend(System::ServiceModel::Channels::Message ^ message, AsyncCallback ^ callback, System::Object ^ state) = System::ServiceModel::Channels::IOutputChannel::BeginSend;
IAsyncResult IOutputChannel.BeginSend (System.ServiceModel.Channels.Message message, AsyncCallback callback, object state);
abstract member System.ServiceModel.Channels.IOutputChannel.BeginSend : System.ServiceModel.Channels.Message * AsyncCallback * obj -> IAsyncResult
override this.System.ServiceModel.Channels.IOutputChannel.BeginSend : System.ServiceModel.Channels.Message * AsyncCallback * obj -> IAsyncResult
Function BeginSend (message As Message, callback As AsyncCallback, state As Object) As IAsyncResult Implements IOutputChannel.BeginSend

参数

message
Message

正在输出通道上发送的消息。

callback
AsyncCallback

AsyncCallback 委托。

state
Object

一个由应用程序指定的对象,包含与异步发送操作相关联的状态信息。

返回

IAsyncResult

引用异步消息传输的 IAsyncResult

实现

适用于

IOutputChannel.BeginSend(Message, TimeSpan, AsyncCallback, Object)

开始一个异步操作,在指定时间间隔内向输出通道的目标传输消息。

 virtual IAsyncResult ^ System.ServiceModel.Channels.IOutputChannel.BeginSend(System::ServiceModel::Channels::Message ^ message, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state) = System::ServiceModel::Channels::IOutputChannel::BeginSend;
IAsyncResult IOutputChannel.BeginSend (System.ServiceModel.Channels.Message message, TimeSpan timeout, AsyncCallback callback, object state);
abstract member System.ServiceModel.Channels.IOutputChannel.BeginSend : System.ServiceModel.Channels.Message * TimeSpan * AsyncCallback * obj -> IAsyncResult
override this.System.ServiceModel.Channels.IOutputChannel.BeginSend : System.ServiceModel.Channels.Message * TimeSpan * AsyncCallback * obj -> IAsyncResult
Function BeginSend (message As Message, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult Implements IOutputChannel.BeginSend

参数

message
Message

正在输出通道上发送的消息。

timeout
TimeSpan

指定在超时前必须完成发送操作的时间的时间跨度。

callback
AsyncCallback

AsyncCallback 委托,接收异步操作完成发送的通知。

state
Object

一个由应用程序指定的对象,包含与异步发送操作相关联的状态信息。

返回

IAsyncResult

引用异步发送操作的 IAsyncResult

实现

适用于