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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for