System::EnumValuesBase::Parse 方法

EnumValuesBase::Parse method

返回一个对象,该对象表示具有指定名称的指定枚举类型的枚举常量值。

static SharedPtr<Object> System::EnumValuesBase::Parse(const TypeInfo &type, const String &str, bool ignoreCase)
参数类型描述
typeconst TypeInfo&表示要返回的枚举值类型的 TypeInfo 对象
strconst String&枚举常量的名称
ignoreCasebool指定在解释枚举常量名称时是否应忽略大小写。

ReturnValue

一个对象,表示名称在 str 中指定的枚举常量的值。

另见