TypeDelegator.GetEvent(String, BindingFlags) Método

Definição

Devolve o evento especificado.

public:
 override System::Reflection::EventInfo ^ GetEvent(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.EventInfo GetEvent(string name, System.Reflection.BindingFlags bindingAttr);
override this.GetEvent : string * System.Reflection.BindingFlags -> System.Reflection.EventInfo
Public Overrides Function GetEvent (name As String, bindingAttr As BindingFlags) As EventInfo

Parâmetros

name
String

O nome do evento a obter.

bindingAttr
BindingFlags

Uma máscara de bits que afeta a forma como a pesquisa é realizada. O valor é uma combinação de zero ou mais flags de bits de BindingFlags.

Devoluções

Um EventInfo objeto que representa o evento declarado ou herdado por este tipo com o nome especificado. Este método retorna null se tal evento não for encontrado.

Exceções

O name parâmetro é null.

Observações

Se bindingAttr for BindingFlags.IgnoreCase, ignora-se o caso do name parâmetro.

Aplica-se a