HashPartitionResolver.GetPartitionKey
Method
Definition
Extracts the partition key from the specified document using the specified PartitionKeyPropertyName property or PartitionKeyExtractor function in order of preference in the Azure DocumentDB database service.
public virtual object GetPartitionKey (object document);
Parameters
- document
- Object
A document object
Returns
object used as the partition key.
Exceptions
Thrown if unable to extract the partition key.