Trigger Class
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.
Represents a trigger in the Azure Cosmos DB service.
public class Trigger : Microsoft.Azure.Documents.Resource
type Trigger = class
inherit Resource
Public Class Trigger
Inherits Resource
- Inheritance
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. |
Properties
AltLink |
Gets the alt-link associated with the resource from the Azure Cosmos DB service. (Inherited from Resource) |
Body |
Gets or sets the body of the trigger for the Azure Cosmos DB service. |
ETag |
Gets the entity tag associated with the resource from the Azure Cosmos DB service. (Inherited from Resource) |
Id |
Gets or sets the Id of the resource in the Azure Cosmos DB service. (Inherited from Resource) |
ResourceId |
Gets or sets the Resource Id associated with the resource in the Azure Cosmos DB service. (Inherited from Resource) |
SelfLink |
Gets the self-link associated with the resource from the Azure Cosmos DB service. (Inherited from Resource) |
Timestamp |
Gets the last modified timestamp associated with the resource from the Azure Cosmos DB service. (Inherited from Resource) |
TriggerOperation |
Gets or sets the operation the trigger is associated with for the Azure Cosmos DB service. |
TriggerType |
Get or set the type of the trigger for the Azure Cosmos DB service. |
Methods
GetPropertyValue<T>(String) |
Gets property value associated with the specified property name from the Azure Cosmos DB service. (Inherited from Resource) |
LoadFrom(JsonReader, JsonSerializerSettings) |
Loads the object from the specified JSON reader in the Azure Cosmos DB service. (Inherited from JsonSerializable) |
LoadFrom(JsonReader) |
Loads the object from the specified JSON reader in the Azure Cosmos DB service. (Inherited from JsonSerializable) |
SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings) |
Saves the object to the specified stream in the Azure Cosmos DB service. (Inherited from JsonSerializable) |
SaveTo(Stream, SerializationFormattingPolicy) |
Saves the object to the specified stream in the Azure Cosmos DB service. (Inherited from JsonSerializable) |
SetPropertyValue(String, Object) |
Sets property value associated with the specified property name in the Azure Cosmos DB service. (Inherited from Resource) |
ToByteArray() |
Serialize to a byte array via SaveTo for the Azure Cosmos DB service. (Inherited from Resource) |
ToString() |
Returns the string representation of the object in the Azure Cosmos DB service. (Inherited from JsonSerializable) |
Applies to
Azure SDK for .NET