System::BoxedValueBase::Parse 方法

BoxedValueBase::Parse(const TypeInfo&, const String&) method

将指定枚举中具有指定名称的枚举常量的值装箱。

static SharedPtr<Object> System::BoxedValueBase::Parse(const TypeInfo &type, const String &str)
参数类型描述
类型const TypeInfo&指定枚举的类型
strconst String&要装箱的枚举常量的名称

ReturnValue

指向表示指定枚举常量装箱值的对象的共享指针

另见

BoxedValueBase::Parse(const TypeInfo&, const String&, bool) method

将指定枚举中具有指定名称的枚举常量的值装箱。一个参数指定在解释指定枚举常量名称的字符串时是否应忽略大小写。

static SharedPtr<Object> System::BoxedValueBase::Parse(const TypeInfo &type, const String &str, bool ignoreCase)
参数类型描述
类型const TypeInfo&指定枚举的类型
strconst String&要装箱的枚举常量的名称
ignoreCasebool指定在解释表示枚举常量名称的字符串时是否应忽略大小写

ReturnValue

指向表示指定枚举常量装箱值的对象的共享指针

另见