UriFactory.CreateDocumentCollectionUri(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 and collection id, this creates a collection link.
public static Uri CreateDocumentCollectionUri (string databaseId, string collectionId);
static member CreateDocumentCollectionUri : string * string -> Uri
Public Shared Function CreateDocumentCollectionUri (databaseId As String, collectionId As String) As Uri
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 Cosmos DB.
Applies to
See also
Azure SDK for .NET