GetPartitionKey Method GetPartitionKey() Gets the partition key. Declaration object GetPartitionKey() Returns object The partition key of the object, or null to fallback to the default strategy.