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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.