ClientBase<TChannel>.ChannelBase<T>.IOutputChannel.BeginSend Method

Definition

开始一个发送消息的异步操作。Begins an asynchronous operation to transmit a message.

Overloads

IOutputChannel.BeginSend(Message, AsyncCallback, Object)

开始一个异步操作,向输出通道的目标传输一条消息。Begins an asynchronous operation to transmit a message to the destination of the output channel.

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

开始一个异步操作,在指定时间间隔内向输出通道的目标传输消息。Begins an asynchronous operation to transmit a message to the destination of the output channel within a specified interval of time.

IOutputChannel.BeginSend(Message, AsyncCallback, Object)

开始一个异步操作,向输出通道的目标传输一条消息。Begins an asynchronous operation to transmit a message to the destination of the output channel.

 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

Parameters

message
Message

正在输出通道上发送的消息。The message being sent on the output channel.

callback
AsyncCallback

AsyncCallback 委托。The AsyncCallback delegate.

state
Object

一个由应用程序指定的对象,包含与异步发送操作相关联的状态信息。An object, specified by the application, that contains state information associated with the asynchronous send operation.

Returns

IAsyncResult

引用异步消息传输的 IAsyncResultThe IAsyncResult that references the asynchronous message transmission.

Implements

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

开始一个异步操作,在指定时间间隔内向输出通道的目标传输消息。Begins an asynchronous operation to transmit a message to the destination of the output channel within a specified interval of time.

 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

Parameters

message
Message

正在输出通道上发送的消息。The message being sent on the output channel.

timeout
TimeSpan

指定在超时前必须完成发送操作的时间的时间跨度。The timespan that specifies how long the send operation has to complete before timing out.

callback
AsyncCallback

AsyncCallback 委托,接收异步操作完成发送的通知。The AsyncCallback delegate that receives the notification of the asynchronous operation send completion.

state
Object

一个由应用程序指定的对象,包含与异步发送操作相关联的状态信息。An object, specified by the application, that contains state information associated with the asynchronous send operation.

Returns

IAsyncResult

引用异步发送操作的 IAsyncResultThe IAsyncResult that references the asynchronous send operation.

Implements

Applies to