IRemoteEventInfoContract.GetAddMethod Metod

Definition

Returnerar den metod som användes för att lägga till ett händelsehanterardelegat till händelsen som detta IRemoteEventInfoContract identifierar.

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

Returer

En IRemoteMethodInfoContract som representerar den metod som användes för att lägga till ett händelsehanterardelegat till händelsen som detta IRemoteEventInfoContract identifierar.

Kommentarer

Om du vill lägga till ett ombud till händelsen anropar Invoke du metoden för den IRemoteMethodInfoContract som GetAddMethod returneras. Skicka ett IRemoteDelegateContract som representerar ombudet till parametern parametersInvoke.

Gäller för