IDataGetPartitionHash Method Hazelcast .Net Client Class Library
Returns partition hash calculated for serialized object.

Namespace: Hazelcast.IO.Serialization
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.5.0.6
Syntax

int GetPartitionHash()

Return Value

Type: Int32
partition 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 Also

Reference

SerializationService.ToData(Object, IPartitioningStrategy)