IDocumentClient.UpsertStoredProcedureAsync
Method
Definition
Overloads
| UpsertStoredProcedureAsync(String, StoredProcedure, RequestOptions) |
Upserts a stored procedure as an asychronous operation in the Azure DocumentDB database service. |
| UpsertStoredProcedureAsync(Uri, StoredProcedure, RequestOptions) |
Upserts a stored procedure as an asychronous operation in the Azure DocumentDB database service. |
UpsertStoredProcedureAsync(String, StoredProcedure, RequestOptions)
Upserts a stored procedure as an asychronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.StoredProcedure>> UpsertStoredProcedureAsync (string collectionLink, Microsoft.Azure.Documents.StoredProcedure storedProcedure, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- collectionLink
- String
The link of the collection to upsert the stored procedure in. E.g. dbs/db_rid/colls/col_rid/
- storedProcedure
- StoredProcedure
The StoredProcedure object to upsert.
- options
- RequestOptions
(Optional) Any RequestOptionsfor this request.
The StoredProcedure that was upserted contained within a Task object representing the service response for the asynchronous operation.
UpsertStoredProcedureAsync(Uri, StoredProcedure, RequestOptions)
Upserts a stored procedure as an asychronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.StoredProcedure>> UpsertStoredProcedureAsync (Uri documentCollectionUri, Microsoft.Azure.Documents.StoredProcedure storedProcedure, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- documentCollectionUri
- Uri
The URI of the document collection to upsert the stored procedure in.
- storedProcedure
- StoredProcedure
The StoredProcedure object.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
The task object representing the service response for the asynchronous operation.