IRemoteTypeContract.GetEvent(String, BindingFlags) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.