IRemoteTypeContract.GetEvent(String, BindingFlags) Metodo

Definizione

Restituisce un oggetto IRemoteEventInfoContract che fornisce l'accesso a un evento specificato dell'oggetto corrente IRemoteTypeContract.

public:
 System::AddIn::Contract::Automation::IRemoteEventInfoContract ^ GetEvent(System::String ^ name, System::Reflection::BindingFlags bindingFlags);
public System.AddIn.Contract.Automation.IRemoteEventInfoContract GetEvent(string name, System.Reflection.BindingFlags bindingFlags);
abstract member GetEvent : string * System.Reflection.BindingFlags -> System.AddIn.Contract.Automation.IRemoteEventInfoContract
Public Function GetEvent (name As String, bindingFlags As BindingFlags) As IRemoteEventInfoContract

Parametri

name
String

Nome di un evento dell'oggetto corrente IRemoteTypeContract.

bindingFlags
BindingFlags

Combinazione bit per bit dei BindingFlags valori che specifica come cercare l'evento.

Valori restituiti

Oggetto IRemoteEventInfoContract che fornisce l'accesso all'evento specificato, se trovato; in caso contrario, null.

Si applica a