---
title: "Aspose::Email::PersonalInfo::PhoneNumber::GetHashCode method"
url: "https://reference.aspose.com/email/cpp/aspose.email.personalinfo/phonenumber/gethashcode/"
product: "Aspose.Email for C++"
description: "GetHashCode returns a hash function for this object."
---


## GetHashCode (1 of 2) {#gethashcode_1}

GetHashCode returns a hash function for this object.

**Returns:** Returns a hash function for this object.

```cpp
GetHashCode()
```

---

## GetHashCode (2 of 2) {#gethashcode_2}

GetHashCode returns a hash function for specified object.

**Returns:** Returns a hash function for specified object.

```cpp
GetHashCode(System::SharedPtr < PhoneNumber > obj)
```

| Parameter | Description |
| --- | --- |
| obj | The Object for which a hash code is to be returned. |

