HashPartitionResolver.GetPartitionKey(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extracts the partition key from the specified document using the specified PartitionKeyPropertyName property or PartitionKeyExtractor function in order of preference in the Azure Cosmos DB service.
public virtual object GetPartitionKey (object document);
abstract member GetPartitionKey : obj -> obj
override this.GetPartitionKey : obj -> obj
Public Overridable Function GetPartitionKey (document As Object) As Object
Parameters
- document
- Object
A document object
Returns
object used as the partition key.
Implements
Exceptions
Thrown if unable to extract the partition key.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.