IDocumentClient.CreateTriggerAsync Method

Definition

Overloads

CreateTriggerAsync(String, Trigger, RequestOptions)

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

CreateTriggerAsync(Uri, Trigger, RequestOptions)

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

CreateTriggerAsync(String, Trigger, RequestOptions)

Creates 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>> CreateTriggerAsync (string collectionLink, Microsoft.Azure.Documents.Trigger trigger, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
collectionLink
String

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

trigger
Trigger

The Trigger object to create.

options
RequestOptions

(Optional) The RequestOptionsfor this request.

Returns

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

CreateTriggerAsync(Uri, Trigger, RequestOptions)

Creates 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>> CreateTriggerAsync (Uri documentCollectionUri, Microsoft.Azure.Documents.Trigger trigger, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
documentCollectionUri
Uri

The URI of the document collection to create 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.