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