UriFactory.CreateCollectionUri
Method
Definition
Given a database and collection id, this creates a collection link.
[System.Obsolete("CreateCollectionUri method is deprecated, please use CreateDocumentCollectionUri method instead.")]
public static Uri CreateCollectionUri (string databaseId, string collectionId);
Parameters
- databaseId
- String
The database id
- collectionId
- String
The collection id
Returns
A collection link in the format of /dbs/{0}/colls/{1}/ with {0} being a Uri escaped version of the databaseId and {1} being collectionId
Remarks
Would be used when updating or deleting a DocumentCollection, creating a Document, a StoredProcedure, a Trigger, a UserDefinedFunction, or when executing a query with CreateDocumentQuery in Azure DocumentDB.