TypeInfo.DeclaredEvents Property
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.
Gets a collection of the events defined by the current type.
public:
virtual property System::Collections::Generic::IEnumerable<System::Reflection::EventInfo ^> ^ DeclaredEvents { System::Collections::Generic::IEnumerable<System::Reflection::EventInfo ^> ^ get(); };
public virtual System.Collections.Generic.IEnumerable<System.Reflection.EventInfo> DeclaredEvents { get; }
member this.DeclaredEvents : seq<System.Reflection.EventInfo>
Public Overridable ReadOnly Property DeclaredEvents As IEnumerable(Of EventInfo)
Property Value
A collection of the events defined by the current type.
Remarks
To filter the results of the DeclaredEvents property, use LINQ queries. For reflection objects that originate with the runtime (for example, as the result of typeof(Object)
), you can traverse the inheritance tree by using the methods in the RuntimeReflectionExtensions class. Consumers of objects from customized reflection contexts cannot use these methods and must traverse the inheritance tree themselves.
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre