Share via


HashPartitionResolver.ResolveForCreate(Object) Method

Definition

Given a partition key, returns the collection self-link for creating a document in the Azure Cosmos DB service.

public virtual string ResolveForCreate (object partitionKey);
abstract member ResolveForCreate : obj -> string
override this.ResolveForCreate : obj -> string
Public Overridable Function ResolveForCreate (partitionKey As Object) As String

Parameters

partitionKey
Object

The partition key used to determine the target collection for creates.

Returns

The target collection link that will be used for document creation.

Implements

Exceptions

Thrown if the specified partitionKey is null.

Applies to