## CompareInfo::GetCompareInfo(const String\&) method


Gets [CompareInfo](../) associated with the specified culture.

```cpp
static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(const String &name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const String\& | Culture name. |

### ReturnValue

[CompareInfo](../) object.

## See Also

* Typedef [CompareInfoPtr](../../compareinfoptr/)
* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::GetCompareInfo(const String\&, const SharedPtr\<Reflection::Assembly\>\&) method


Gets [CompareInfo](../) associated with the specified culture and using string comparison methods in the specified assembly.

```cpp
static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(const String &name, const SharedPtr<Reflection::Assembly> &assembly)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const String\& | Culture name. |
| assembly | const SharedPtr\<Reflection::Assembly\>\& | Assembly that contains string comparison methods. |

### ReturnValue

[CompareInfo](../) object.

## See Also

* Typedef [CompareInfoPtr](../../compareinfoptr/)
* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Assembly](../../../system.reflection/assembly/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::GetCompareInfo(int) method


Gets [CompareInfo](../) associated with the specified culture.

```cpp
static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(int culture)
```


| Parameter | Type | Description |
| --- | --- | --- |
| culture | int | Culture identifier (LCID). |

### ReturnValue

[CompareInfo](../) object.

## See Also

* Typedef [CompareInfoPtr](../../compareinfoptr/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
## CompareInfo::GetCompareInfo(int, const SharedPtr\<Reflection::Assembly\>\&) method


Gets [CompareInfo](../) associated with the specified culture and using string comparison methods in the specified assembly.

```cpp
static CompareInfoPtr System::Globalization::CompareInfo::GetCompareInfo(int culture, const SharedPtr<Reflection::Assembly> &assembly)
```


| Parameter | Type | Description |
| --- | --- | --- |
| culture | int | Culture identifier (LCID). |
| assembly | const SharedPtr\<Reflection::Assembly\>\& | Assembly that contains string comparison methods. |

### ReturnValue

[CompareInfo](../) object.

## See Also

* Typedef [CompareInfoPtr](../../compareinfoptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Assembly](../../../system.reflection/assembly/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.PDF for C++](../../../)
