TypeProvider.GetEventHandlerType(EventInfo) 方法

定义

如果提供对 Type 的引用,则获取 EventHandlerEventInfoGets the Type of an EventHandler, given a reference to an EventInfo.

public:
 static Type ^ GetEventHandlerType(System::Reflection::EventInfo ^ eventInfo);
public static Type GetEventHandlerType (System.Reflection.EventInfo eventInfo);
static member GetEventHandlerType : System.Reflection.EventInfo -> Type
Public Shared Function GetEventHandlerType (eventInfo As EventInfo) As Type

参数

eventInfo
EventInfo

要获取其 EventInfo 类型的 EventHandlerThe EventInfo to obtain the EventHandler type of.

返回

提供对 Type 的引用的情况下 EventHandlerEventInfoThe Type of an EventHandler, given a reference to an EventInfo.

例外

eventInfo 为空引用(在 Visual Basic 中为 Nothing)。eventInfo is a null reference (Visual Basic Nothing).

适用于