UriFactory.CreateDocumentUri
Method
Definition
Given a database, collection and document id, this creates a document link.
public static Uri CreateDocumentUri (string databaseId, string collectionId, string documentId);
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 DocumentDB.