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);
Parameters
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.

Returns

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);
Parameters
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.

Returns

The task object representing the service response for the asynchronous operation.