RuntimeReflectionExtensions.GetRuntimeEvents(Type) 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索表示指定类型定义的所有事件的集合。
public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Reflection::EventInfo ^> ^ GetRuntimeEvents(Type ^ type);public static System.Collections.Generic.IEnumerable<System.Reflection.EventInfo> GetRuntimeEvents(this Type type);static member GetRuntimeEvents : Type -> seq<System.Reflection.EventInfo><Extension()>
Public Function GetRuntimeEvents (type As Type) As IEnumerable(Of EventInfo)参数
- type
- Type
包含该事件的类型。
返回
指定类型的事件集合。
例外
              type 为 null。
注解
此方法返回在指定类型上定义的所有事件,包括继承事件、非公共事件、实例事件和静态事件。