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
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Azure SDK for .NET