ClientBase<TChannel>.ChannelBase<T>.BeginInvoke(String, Object[], AsyncCallback, Object) 方法
定义
按名称启动指定方法的异步调用。Starts an asynchronous call of a specified method by name.
protected:
IAsyncResult ^ BeginInvoke(System::String ^ methodName, cli::array <System::Object ^> ^ args, AsyncCallback ^ callback, System::Object ^ state);
protected IAsyncResult BeginInvoke (string methodName, object[] args, AsyncCallback callback, object state);
member this.BeginInvoke : string * obj[] * AsyncCallback * obj -> IAsyncResult
Protected Function BeginInvoke (methodName As String, args As Object(), callback As AsyncCallback, state As Object) As IAsyncResult
参数
- methodName
- String
要异步调用的方法的名称。The name of the method to be called asynchronously.
- args
- Object[]
调用的方法的参数数组。An array of arguments for the method invoked.
- callback
- AsyncCallback
AsyncCallback 委托。The AsyncCallback delegate.
- state
- Object
状态对象。The state object.
返回
引用调用的异步方法的 IAsyncResult。The IAsyncResult that references the asynchronous method invoked.