Udostępnij za pośrednictwem


UriFactory.CreateCollectionUri(String, String) Method

Definition

Caution

CreateCollectionUri method is deprecated, please use CreateDocumentCollectionUri method instead.

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);
[<System.Obsolete("CreateCollectionUri method is deprecated, please use CreateDocumentCollectionUri method instead.")>]
static member CreateCollectionUri : string * string -> Uri
Public Shared Function CreateCollectionUri (databaseId As String, collectionId As String) As Uri

Parameters

databaseId
String

The database id

collectionId
String

The collection id

Returns

Uri

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

Attributes

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