ClientBase<TChannel>.ChannelBase<T>.IRequestChannel.BeginRequest 方法

定义

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

重载

IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object)

开始一个异步操作,在指定时间间隔内将请求消息传送到请求-答复消息交换的答复端。

IRequestChannel.BeginRequest(Message, AsyncCallback, Object)

开始一个异步操作,将请求消息传送到请求-答复消息交换的答复端。

IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object)

Source:
ClientBase.cs

开始一个异步操作,在指定时间间隔内将请求消息传送到请求-答复消息交换的答复端。

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

参数

message
Message

待传输的请求消息。

timeout
TimeSpan

指定时间间隔的时间跨度,在此时间间隔内必须收到响应。

callback
AsyncCallback

AsyncCallback 委托,它接收传送请求消息的异步操作的完成通知。

state
Object

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

返回

引用异步消息传输的 IAsyncResult

实现

适用于

IRequestChannel.BeginRequest(Message, AsyncCallback, Object)

Source:
ClientBase.cs

开始一个异步操作,将请求消息传送到请求-答复消息交换的答复端。

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

参数

message
Message

待传输的请求消息。

callback
AsyncCallback

AsyncCallback 委托,它接收传送请求消息的异步操作的完成通知。

state
Object

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

返回

引用异步消息传输的 IAsyncResult

实现

适用于