UriFactory.CreateStoredProcedureUri Method

Definition

Given a database, collection and stored proc id, this creates a stored proc link.

public static Uri CreateStoredProcedureUri (string databaseId, string collectionId, string storedProcedureId);
Parameters
databaseId
String

The database id

collectionId
String

The collection id

storedProcedureId
String

The stored procedure id

Returns
Uri

A stored procedure link in the format of /dbs/{0}/colls/{1}/sprocs/{2}/ with {0} being a Uri escaped version of the databaseId, {1} being collectionId and {2} being the storedProcedureId

Remarks

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