IDocumentClient.CreateStoredProcedureAsync
Method
Definition
Overloads
| CreateStoredProcedureAsync(Uri, StoredProcedure, RequestOptions) |
Creates a stored procedure as an asychronous operation in the Azure DocumentDB database service. |
| CreateStoredProcedureAsync(String, StoredProcedure, RequestOptions) |
Creates a stored procedure as an asychronous operation in the Azure DocumentDB database service. |
CreateStoredProcedureAsync(Uri, StoredProcedure, RequestOptions)
Creates 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>> CreateStoredProcedureAsync (Uri documentCollectionUri, Microsoft.Azure.Documents.StoredProcedure storedProcedure, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- documentCollectionUri
- Uri
The URI of the document collection to create 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.
CreateStoredProcedureAsync(String, StoredProcedure, RequestOptions)
Creates 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>> CreateStoredProcedureAsync (string collectionLink, Microsoft.Azure.Documents.StoredProcedure storedProcedure, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- collectionLink
- String
The link of the collection to create the stored procedure in. E.g. dbs/db_rid/colls/col_rid/
- storedProcedure
- StoredProcedure
The StoredProcedure object to create.
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
The StoredProcedure that was created contained within a Task object representing the service response for the asynchronous operation.