![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | IDistributedObjectGetPartitionKey Method |
Returns the key of partition this IDistributedObject is assigned to.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
SyntaxFunction GetPartitionKey As String
String^ GetPartitionKey()
abstract GetPartitionKey : unit -> string
Return Value
Type:
Stringthe partition key.
Remarks
Returns the key of partition this IDistributedObject is assigned to. The returned value only has meaning
for a non partitioned data-structure like an IAtomicLong. For a partitioned data-structure like an IMap
the returned value will not be null, but otherwise undefined.
See Also