CosmosTriggerExtensions.SetTriggerOperation Method
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.
Overloads
| Name | Description |
|---|---|
| SetTriggerOperation(IMutableTrigger, Nullable<TriggerOperation>) |
Sets the Cosmos DB trigger operation for this trigger. |
| SetTriggerOperation(IConventionTrigger, Nullable<TriggerOperation>, Boolean) |
Sets the Cosmos DB trigger operation for this trigger. |
SetTriggerOperation(IMutableTrigger, Nullable<TriggerOperation>)
- Source:
- CosmosTriggerExtensions.cs
Sets the Cosmos DB trigger operation for this trigger.
public static void SetTriggerOperation(this Microsoft.EntityFrameworkCore.Metadata.IMutableTrigger trigger, Microsoft.Azure.Cosmos.Scripts.TriggerOperation? triggerOperation);
static member SetTriggerOperation : Microsoft.EntityFrameworkCore.Metadata.IMutableTrigger * Nullable<Microsoft.Azure.Cosmos.Scripts.TriggerOperation> -> unit
<Extension()>
Public Sub SetTriggerOperation (trigger As IMutableTrigger, triggerOperation As Nullable(Of TriggerOperation))
Parameters
- trigger
- IMutableTrigger
The trigger.
- triggerOperation
- Nullable<TriggerOperation>
The Cosmos DB trigger operation.
Applies to
SetTriggerOperation(IConventionTrigger, Nullable<TriggerOperation>, Boolean)
- Source:
- CosmosTriggerExtensions.cs
Sets the Cosmos DB trigger operation for this trigger.
public static Microsoft.Azure.Cosmos.Scripts.TriggerOperation? SetTriggerOperation(this Microsoft.EntityFrameworkCore.Metadata.IConventionTrigger trigger, Microsoft.Azure.Cosmos.Scripts.TriggerOperation? triggerOperation, bool fromDataAnnotation = false);
static member SetTriggerOperation : Microsoft.EntityFrameworkCore.Metadata.IConventionTrigger * Nullable<Microsoft.Azure.Cosmos.Scripts.TriggerOperation> * bool -> Nullable<Microsoft.Azure.Cosmos.Scripts.TriggerOperation>
<Extension()>
Public Function SetTriggerOperation (trigger As IConventionTrigger, triggerOperation As Nullable(Of TriggerOperation), Optional fromDataAnnotation As Boolean = false) As Nullable(Of TriggerOperation)
Parameters
- trigger
- IConventionTrigger
The trigger.
- triggerOperation
- Nullable<TriggerOperation>
The Cosmos DB trigger operation.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.