Share via


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 是创建自己的转换类型。

适用于