共用方式為


IRemoteTypeContract.GetEvents(BindingFlags) 方法

定義

傳回 IRemoteEventInfoContract 物件的集合,這個集合可提供存取目前 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)

參數

bindingFlags
BindingFlags

BindingFlags 值的位元組合,指定搜尋事件的方式。

傳回

IArrayContract<C> 物件的 IRemoteEventInfoContract,可提供存取符合指定之繫結條件約束的事件,否則為空白 IArrayContract<C>

適用於