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);
- collectionLink
- String
The link of the DocumentCollection to create the trigger in. E.g. dbs/db_rid/colls/col_rid/
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
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);
- documentCollectionUri
- Uri
The URI of the document collection to create the trigger in.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
The task object representing the service response for the asynchronous operation.