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