System::Globalization::CompareInfo::GetCompareInfo 方法

CompareInfo::GetCompareInfo(const String&) method

获取与指定文化关联的 CompareInfo

static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(const String &name)
ParameterType描述
nameconst String&文化名称。

ReturnValue

CompareInfo object.

另见

CompareInfo::GetCompareInfo(const String&, const SharedPtr<Reflection::Assembly>&) method

获取与指定文化关联的 CompareInfo,并使用指定程序集中的字符串比较方法。

static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(const String &name, const SharedPtr<Reflection::Assembly> &assembly)
ParameterType描述
nameconst String&文化名称。
程序集const SharedPtr<Reflection::Assembly>&包含字符串比较方法的程序集。

ReturnValue

CompareInfo object.

另见

CompareInfo::GetCompareInfo(int) method

获取与指定文化关联的 CompareInfo

static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(int culture)
ParameterType描述
区域性int区域性标识符 (LCID)。

ReturnValue

CompareInfo object.

另见

CompareInfo::GetCompareInfo(int, const SharedPtr<Reflection::Assembly>&) method

获取与指定文化关联的 CompareInfo,并使用指定程序集中的字符串比较方法。

static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(int culture, const SharedPtr<Reflection::Assembly> &assembly)
ParameterType描述
区域性int区域性标识符 (LCID)。
程序集const SharedPtr<Reflection::Assembly>&包含字符串比较方法的程序集。

ReturnValue

CompareInfo object.

另见