UriFactory.CreateAttachmentUri
Method
Definition
Given a database, collection, document, and attachment id, this creates an attachment link.
public static Uri CreateAttachmentUri (string databaseId, string collectionId, string documentId, string attachmentId);
Parameters
- databaseId
- String
The database id
- collectionId
- String
The collection id
- documentId
- String
The document id
- attachmentId
- String
The attachment id
Returns
An attachment link in the format of /dbs/{0}/colls/{1}/docs/{2}/attachments/{3} with {0} being a Uri escaped version of the databaseId, {1} being collectionId, {2} being the documentId and {3} being attachmentId
Remarks
Would be used when replacing, or deleting an Attachment in Azure DocumentDB.