## CompareInfo::GetHashCode() const method


相当于 C# 的 [Object.GetHashCode()](../../../system/object/gethashcode/) 方法。支持对自定义对象进行哈希处理。

```cpp
int System::Globalization::CompareInfo::GetHashCode() const override
```


### ReturnValue

由相应类计算的哈希码值。

## 另见

* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Page for C++](../../../)
## CompareInfo::GetHashCode(const String\&, CompareOptions) const method


获取基于指定比较选项的字符串哈希码。

```cpp
virtual int System::Globalization::CompareInfo::GetHashCode(const String &value, CompareOptions options) const
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| value | const String\& | 输入字符串。 |
| options | CompareOptions | [String](../../../system/string/) 比较选项。 |

### ReturnValue

哈希码。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Page for C++](../../../)
