Share via


TypeProvider.GetEventHandlerType(EventInfo) 方法

定義

取得 TypeEventHandler (參考 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,可取得 EventHandler 型別。

傳回

Type

TypeEventHandler (參考 EventInfo)。

例外狀況

eventInfo 為 null 參考 (在 Visual Basic 中為 Nothing)。

適用於