GenericEnumConverter(Type) 建構函式

定義

初始化 GenericEnumConverter 類別的新執行個體。

public:
 GenericEnumConverter(Type ^ typeEnum);
public GenericEnumConverter (Type typeEnum);
new System.Configuration.GenericEnumConverter : Type -> System.Configuration.GenericEnumConverter
Public Sub New (typeEnum As Type)

參數

typeEnum
Type

要轉換的列舉型別。

例外狀況

typeEnumnull

備註

一般而言,您會使用系統所提供的轉換器類型。 唯一需要使用建 GenericEnumConverter 構函式的時間是當您建立自己的轉換類型時。

適用於