Table of Contents

Class Trigger

Namespace
Microsoft.Azure.Documents
Assembly
Microsoft.Azure.Documents.Client.dll

Represents a trigger in the Azure Cosmos DB service.

public class Trigger : Resource
Inheritance
Trigger
Inherited Members
Extension Methods

Remarks

Azure Cosmos DB supports pre and post triggers written in JavaScript to be executed on creates, updates and deletes. For additional details, refer to the server-side JavaScript API documentation.

Constructors

Trigger()

Initializes a new instance of the Trigger class for the Azure Cosmos DB service.

public Trigger()

Properties

Body

Gets or sets the body of the trigger for the Azure Cosmos DB service.

public string Body { get; set; }

Property Value

string

The body of the trigger.

TriggerOperation

Gets or sets the operation the trigger is associated with for the Azure Cosmos DB service.

public TriggerOperation TriggerOperation { get; set; }

Property Value

TriggerOperation

The operation the trigger is associated with.

See Also

TriggerType

Get or set the type of the trigger for the Azure Cosmos DB service.

public TriggerType TriggerType { get; set; }

Property Value

TriggerType

The body of the trigger.

See Also