IRemoteEventInfoContract.GetRemoveMethod 方法

定义

返回用于从标识的事件 IRemoteEventInfoContract 中删除事件处理程序委托的方法。

public:
 System::AddIn::Contract::Automation::IRemoteMethodInfoContract ^ GetRemoveMethod();
public System.AddIn.Contract.Automation.IRemoteMethodInfoContract GetRemoveMethod();
abstract member GetRemoveMethod : unit -> System.AddIn.Contract.Automation.IRemoteMethodInfoContract
Public Function GetRemoveMethod () As IRemoteMethodInfoContract

返回

一个 IRemoteMethodInfoContract 表示用于从此 IRemoteEventInfoContract 标识的事件中删除事件处理程序委托的方法。

注解

若要从事件中删除委托,请调用Invoke返回的方法IRemoteMethodInfoContractGetRemoveMethod。 将表示委托parameters的一个IRemoteDelegateContract传递给参数 Invoke

适用于