Επεξεργασία

Κοινή χρήση μέσω


IRemoteTypeContract.GetEvent(String, BindingFlags) Method

Definition

Returns an IRemoteEventInfoContract that provides access to a specified event of the current 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

Parameters

name
String

The name of an event of the current IRemoteTypeContract.

bindingFlags
BindingFlags

A bitwise combination of the BindingFlags values that specifies how to search for the event.

Returns

An IRemoteEventInfoContract that provides access to the specified event, if found; otherwise, null.

Applies to