## CompareInfo::GetCompareInfo(const String\&) method


获取与指定区域性关联的 [CompareInfo](../)。

```cpp
static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(const String &name)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 名称 | const String\& | 文化名称。 |

### ReturnValue

[CompareInfo](../) object.

## 另见

* Typedef [CompareInfoPtr](../../compareinfoptr/)
* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::GetCompareInfo(const String\&, const SharedPtr\<Reflection::Assembly\>\&) method


获取与指定区域性关联的 [CompareInfo](../)，并在指定的程序集里使用字符串比较方法。

```cpp
static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(const String &name, const SharedPtr<Reflection::Assembly> &assembly)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 名称 | const String\& | 文化名称。 |
| assembly | const SharedPtr\<Reflection::Assembly\>\& | 包含字符串比较方法的程序集。 |

### ReturnValue

[CompareInfo](../) object.

## 另见

* Typedef [CompareInfoPtr](../../compareinfoptr/)
* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Assembly](../../../system.reflection/assembly/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::GetCompareInfo(int) method


获取与指定区域性关联的 [CompareInfo](../)。

```cpp
static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(int culture)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 文化 | int | 文化标识符 (LCID)。 |

### ReturnValue

[CompareInfo](../) object.

## 另见

* Typedef [CompareInfoPtr](../../compareinfoptr/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::GetCompareInfo(int, const SharedPtr\<Reflection::Assembly\>\&) method


获取与指定区域性关联的 [CompareInfo](../)，并在指定的程序集里使用字符串比较方法。

```cpp
static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(int culture, const SharedPtr<Reflection::Assembly> &assembly)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 文化 | int | 文化标识符 (LCID)。 |
| assembly | const SharedPtr\<Reflection::Assembly\>\& | 包含字符串比较方法的程序集。 |

### ReturnValue

[CompareInfo](../) object.

## 另见

* Typedef [CompareInfoPtr](../../compareinfoptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Assembly](../../../system.reflection/assembly/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
