![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IDataGetPartitionHash Method |
Returns partition hash calculated for serialized object.
Namespace:
Hazelcast.IO.Serialization
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
SyntaxFunction GetPartitionHash As Integer
abstract GetPartitionHash : unit -> int
Return Value
Type:
Int32partition hash
Remarks
Returns partition hash calculated for serialized object.
Partition hash is used to determine partition of a Data and is calculated using
IPartitioningStrategy
during serialization.
If partition hash is not set then standard hashCode() is used.
See AlsoReference
SerializationService.ToData(Object, IPartitioningStrategy)