ClientBase<TChannel>.ChannelBase<T>.IRequestChannel.BeginRequest 方法
定义
开始一个发送请求消息的异步操作。Begins an asynchronous operation to transmit a request message.
重载
| IRequestChannel.BeginRequest(Message, AsyncCallback, Object) |
开始一个异步操作,将请求消息传送到请求-答复消息交换的答复端。Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange. |
| IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object) |
开始一个异步操作,在指定时间间隔内将请求消息传送到请求-答复消息交换的答复端。Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange within a specified interval of time. |
IRequestChannel.BeginRequest(Message, AsyncCallback, Object)
开始一个异步操作,将请求消息传送到请求-答复消息交换的答复端。Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange.
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
待传输的请求消息。The request message to be transmitted.
- callback
- AsyncCallback
AsyncCallback 委托,它接收传送请求消息的异步操作的完成通知。The AsyncCallback delegate that receives the notification of the completion of the asynchronous operation transmitting a request message.
- state
- Object
一个由应用程序指定的对象,它包含与传送请求消息的异步操作关联的状态信息。An object, specified by the application, that contains state information associated with the asynchronous operation transmitting a request message.
返回
引用异步消息传输的 IAsyncResult。The IAsyncResult that references the asynchronous message transmission.
实现
适用于
IRequestChannel.BeginRequest(Message, TimeSpan, AsyncCallback, Object)
开始一个异步操作,在指定时间间隔内将请求消息传送到请求-答复消息交换的答复端。Begins an asynchronous operation to transmit a request message to the reply-side of a request-reply message exchange within a specified interval of time.
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
待传输的请求消息。The request message to be transmitted.
- timeout
- TimeSpan
指定时间间隔的时间跨度,在此时间间隔内必须收到响应。The timespan that specifies the interval of time within which a response must be received.
- callback
- AsyncCallback
AsyncCallback 委托,它接收传送请求消息的异步操作的完成通知。The AsyncCallback delegate that receives the notification of the completion of the asynchronous operation transmitting a request message.
- state
- Object
一个由应用程序指定的对象,它包含与传送请求消息的异步操作关联的状态信息。An object, specified by the application, that contains state information associated with the asynchronous operation transmitting a request message.
返回
引用异步消息传输的 IAsyncResult。The IAsyncResult that references the asynchronous message transmission.