Share via


IPartitionResolver.ResolveForCreate(Object) Method

Definition

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

public string ResolveForCreate (object partitionKey);
abstract member ResolveForCreate : obj -> string
Public Function ResolveForCreate (partitionKey As Object) As String

Parameters

partitionKey
Object

The partition key used to determine the target collection for create operations.

Returns

A self-link for the collection to create documents in for the specified partition key.

Remarks

The return value must be a valid collection self-link string in the format dbs/db_rid/colls/col_rid.

Applies to