IRemoteEventInfoContract.GetAddMethod Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.