DocumentClient.ExecuteStoredProcedureAsync
Method
Definition
Overloads
| ExecuteStoredProcedureAsync<TValue>(String, Object[]) |
Executes a stored procedure against a collection as an asynchronous operation in the Azure DocumentDB database service. |
| ExecuteStoredProcedureAsync<TValue>(Uri, Object[]) |
Executes a stored procedure against a collection as an asynchronous operation from the Azure DocumentDB database service. |
| ExecuteStoredProcedureAsync<TValue>(String, RequestOptions, Object[]) |
Executes a stored procedure against a partitioned collection in the Azure DocumentDB database service as an asynchronous operation, specifiying a target partition. |
| ExecuteStoredProcedureAsync<TValue>(Uri, RequestOptions, Object[]) |
Executes a stored procedure against a collection as an asynchronous operation from the Azure DocumentDB database service. |
ExecuteStoredProcedureAsync<TValue>(String, Object[])
Executes a stored procedure against a collection as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.StoredProcedureResponse<TValue>> ExecuteStoredProcedureAsync<TValue> (string storedProcedureLink, object[] procedureParams);
- TValue
The type of the stored procedure's return value.
- storedProcedureLink
- String
The link to the stored procedure to execute.
- procedureParams
- Object[]
(Optional) An array of dynamic objects representing the parameters for the stored procedure.
The task object representing the service response for the asynchronous operation which would contain any response set in the stored procedure.
If storedProcedureLink is not set.
ExecuteStoredProcedureAsync<TValue>(Uri, Object[])
Executes a stored procedure against a collection as an asynchronous operation from the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.StoredProcedureResponse<TValue>> ExecuteStoredProcedureAsync<TValue> (Uri storedProcedureUri, object[] procedureParams);
- TValue
the type of the stored procedure's return value.
- storedProcedureUri
- Uri
the URI of the stored procedure to be executed.
- procedureParams
- Object[]
the parameters for the stored procedure execution.
The task object representing the service response for the asynchronous operation.
ExecuteStoredProcedureAsync<TValue>(String, RequestOptions, Object[])
Executes a stored procedure against a partitioned collection in the Azure DocumentDB database service as an asynchronous operation, specifiying a target partition.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.StoredProcedureResponse<TValue>> ExecuteStoredProcedureAsync<TValue> (string storedProcedureLink, Microsoft.Azure.Documents.Client.RequestOptions options, object[] procedureParams);
- TValue
The type of the stored procedure's return value.
- storedProcedureLink
- String
The link to the stored procedure to execute.
- options
- RequestOptions
(Optional) The request options for the request.
- procedureParams
- Object[]
(Optional) An array of dynamic objects representing the parameters for the stored procedure.
The task object representing the service response for the asynchronous operation which would contain any response set in the stored procedure.
If storedProcedureLink is not set.
ExecuteStoredProcedureAsync<TValue>(Uri, RequestOptions, Object[])
Executes a stored procedure against a collection as an asynchronous operation from the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.StoredProcedureResponse<TValue>> ExecuteStoredProcedureAsync<TValue> (Uri storedProcedureUri, Microsoft.Azure.Documents.Client.RequestOptions options, object[] procedureParams);
- TValue
the type of the stored procedure's return value.
- storedProcedureUri
- Uri
the URI of the stored procedure to be executed.
- options
- RequestOptions
The request options for the request.
- procedureParams
- Object[]
the parameters for the stored procedure execution.
The task object representing the service response for the asynchronous operation.