RangePartitionResolver<T>.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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET