--- title: "default::(type_name)::GetHashCode Method" ms.date: "12/30/2016" ms.assetid: 58ea60f8-f820-4103-9b9b-b6635ada3fa5 --- # default::(type_name)::GetHashCode Method Returns the hash code for this instance. ## Syntax ```cpp public:int GetHashCode(); ``` ### Return Value The hash code for this instance. ### Requirements **Minimum supported client:** Windows 8 **Minimum supported server:** Windows Server 2012 **Namespace:** default **Header:** vccorlib.h ## See also [default namespace](../cppcx/default-namespace.md)