UriFactory.CreateTriggerUri Method

Definition

Given a database, collection and trigger id, this creates a trigger link.

public static Uri CreateTriggerUri (string databaseId, string collectionId, string triggerId);
Parameters
databaseId
String

The database id

collectionId
String

The collection id

triggerId
String

The trigger id

Returns
Uri

A trigger link in the format of /dbs/{0}/colls/{1}/triggers/{2}/ with {0} being a Uri escaped version of the databaseId, {1} being collectionId and {2} being the triggerId

Remarks

Would be used when replacing, executing, or deleting a Trigger in Azure DocumentDB.