共用方式為


RequestOptions.PostTriggerInclude Property

Definition

Gets or sets the trigger to be invoked after the operation in the Azure Cosmos DB service.

public System.Collections.Generic.IList<string> PostTriggerInclude { get; set; }
member this.PostTriggerInclude : System.Collections.Generic.IList<string> with get, set
Public Property PostTriggerInclude As IList(Of String)

Property Value

The trigger to be invoked after the operation.

Examples

The following example shows how to use RequestOptions to include a PostTrigger to execute after persisting the document.

client.CreateDocumentAsync(collection.SelfLink,
new { id = "AndersenFamily", isRegistered = true },
new RequestOptions { PostTriggerInclude = new List<string> { "updateMetadata" } });

Remarks

Only valid when used with Create, Replace and Delete methods for documents. Currently only one PreTrigger is permitted per operation.

Applies to