IDocumentClient.DeleteStoredProcedureAsync Method

Definition

Overloads

DeleteStoredProcedureAsync(String, RequestOptions)

Delete a StoredProcedure as an asynchronous operation in the Azure Cosmos DB service.

DeleteStoredProcedureAsync(Uri, RequestOptions)

Delete a stored procedure as an asynchronous operation in the Azure Cosmos DB service.

DeleteStoredProcedureAsync(String, RequestOptions)

Delete a StoredProcedure as an asynchronous operation in the Azure Cosmos DB service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.StoredProcedure>> DeleteStoredProcedureAsync (string storedProcedureLink, Microsoft.Azure.Documents.Client.RequestOptions options = null);
abstract member DeleteStoredProcedureAsync : string * Microsoft.Azure.Documents.Client.RequestOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.StoredProcedure>>
Public Function DeleteStoredProcedureAsync (storedProcedureLink As String, Optional options As RequestOptions = null) As Task(Of ResourceResponse(Of StoredProcedure))

Parameters

storedProcedureLink
System.String

The link of the StoredProcedure to delete. E.g. dbs/db_rid/colls/col_rid/sprocs/sproc_rid/

options
RequestOptions

(Optional) The RequestOptionsfor this request.

Returns

System.Threading.Tasks.Task<ResourceResponse<StoredProcedure>>

A System.Threading.Tasks containing a ResourceResponse<TResource> which will contain information about the request issued.

Applies to

DeleteStoredProcedureAsync(Uri, RequestOptions)

Delete a stored procedure as an asynchronous operation in the Azure Cosmos DB service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.StoredProcedure>> DeleteStoredProcedureAsync (Uri storedProcedureUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
abstract member DeleteStoredProcedureAsync : Uri * Microsoft.Azure.Documents.Client.RequestOptions -> System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.StoredProcedure>>
Public Function DeleteStoredProcedureAsync (storedProcedureUri As Uri, Optional options As RequestOptions = null) As Task(Of ResourceResponse(Of StoredProcedure))

Parameters

storedProcedureUri
System.Uri

The URI of the stored procedure to delete.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

System.Threading.Tasks.Task<ResourceResponse<StoredProcedure>>

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

Applies to