Język

IRemoteEventInfoContract.GetRemoveMethod Metoda

Definicja

Zwraca metodę, która została użyta do usunięcia delegata programu obsługi zdarzeń z zdarzenia, które to IRemoteEventInfoContract identyfikuje.

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

Zwraca

Element IRemoteMethodInfoContract reprezentujący metodę, która została użyta do usunięcia delegata programu obsługi zdarzeń ze zdarzenia, które to IRemoteEventInfoContract identyfikuje.

Uwagi

Aby usunąć delegata ze zdarzenia, wywołaj Invoke metodę zwracaną IRemoteMethodInfoContract przez GetRemoveMethod funkcję . Przekaż element IRemoteDelegateContract reprezentujący delegata do parameters parametru .Invoke

Dotyczy