語言

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

要轉換的列舉類型。

例外狀況

typeEnum 是 null。

備註

通常你會使用系統提供的轉換器類型。 你唯一需要使用 GenericEnumConverter 建構子的時候,是建立自己的轉換類型時。

適用於