IRemoteTypeContract.GetEvents(BindingFlags) Method

Definition

Returns a collection of IRemoteEventInfoContract objects that provides access to the specified events of the current IRemoteTypeContract.

public:
 System::AddIn::Contract::Collections::IArrayContract<System::AddIn::Contract::Automation::IRemoteEventInfoContract ^> ^ GetEvents(System::Reflection::BindingFlags bindingFlags);
public System.AddIn.Contract.Collections.IArrayContract<System.AddIn.Contract.Automation.IRemoteEventInfoContract> GetEvents (System.Reflection.BindingFlags bindingFlags);
abstract member GetEvents : System.Reflection.BindingFlags -> System.AddIn.Contract.Collections.IArrayContract<System.AddIn.Contract.Automation.IRemoteEventInfoContract>
Public Function GetEvents (bindingFlags As BindingFlags) As IArrayContract(Of IRemoteEventInfoContract)

Parameters

bindingFlags
BindingFlags

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

Returns

An IArrayContract<C> of IRemoteEventInfoContract objects that provides access to the events that match the specified binding constraints; otherwise, an empty IArrayContract<C>.

Applies to