UriFactory.CreateDocumentUri(String, String, String) 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.
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
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.