IDocumentClient.UpsertTriggerAsync Method

Definition

Overloads

UpsertTriggerAsync(String, Trigger, RequestOptions)

Upserts a trigger as an asychronous operation in the Azure DocumentDB database service.

UpsertTriggerAsync(Uri, Trigger, RequestOptions)

Upserts a trigger as an asychronous operation in the Azure DocumentDB database service.

UpsertTriggerAsync(String, Trigger, RequestOptions)

Upserts a trigger as an asychronous operation in the Azure DocumentDB database service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Trigger>> UpsertTriggerAsync (string collectionLink, Microsoft.Azure.Documents.Trigger trigger, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
collectionLink
String

The link of the DocumentCollection to upsert the trigger in. E.g. dbs/db_rid/colls/col_rid/

trigger
Trigger

The Trigger object to upsert.

options
RequestOptions

(Optional) Any RequestOptionsfor this request.

Returns

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

UpsertTriggerAsync(Uri, Trigger, RequestOptions)

Upserts a trigger as an asychronous operation in the Azure DocumentDB database service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Trigger>> UpsertTriggerAsync (Uri documentCollectionUri, Microsoft.Azure.Documents.Trigger trigger, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
documentCollectionUri
Uri

The URI of the document collection to upsert the trigger in.

trigger
Trigger

The Trigger object.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

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