RequestOptions.PreTriggerInclude Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the trigger to be invoked before the operation in the Azure Cosmos DB service.
public System.Collections.Generic.IList<string> PreTriggerInclude { get; set; }
member this.PreTriggerInclude : System.Collections.Generic.IList<string> with get, set
Public Property PreTriggerInclude As IList(Of String)
The trigger to be invoked before the operation.
The following example shows how to use RequestOptions to include a PreTrigger to execute before persisting the document.
client.CreateDocumentAsync(collection.SelfLink,
new { id = "AndersenFamily", isRegistered = true },
new RequestOptions { PreTriggerInclude = new List<string> { "validateDocumentContents" } });
Only valid when used with Create, Replace and Delete methods for documents. Currently only one PreTrigger is permitted per operation.
Applies to
Product | Versions |
---|---|
Azure SDK for .NET | Latest |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: