Condividi tramite


UriFactory.CreateDocumentUri(String, String, String) Method

Definition

Given a database, collection and document id, this creates a document link.

public static Uri CreateDocumentUri (string databaseId, string collectionId, string documentId);
static member CreateDocumentUri : string * string * string -> Uri
Public Shared Function CreateDocumentUri (databaseId As String, collectionId As String, documentId As String) As Uri

Parameters

databaseId
String

The database id

collectionId
String

The collection id

documentId
String

The document id

Returns

Uri

A document link in the format of /dbs/{0}/colls/{1}/docs/{2}/ with {0} being a Uri escaped version of the databaseId, {1} being collectionId and {2} being the documentId

Remarks

Would be used when creating an Attachment, or when replacing or deleting a Document in Azure Cosmos DB.

Applies to

See also