CosmosTriggerBuilderExtensions.CanSetTriggerOperation 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.
Returns a value indicating whether the given Cosmos DB trigger operation can be set for this trigger.
public static bool CanSetTriggerOperation(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder triggerBuilder, Microsoft.Azure.Cosmos.Scripts.TriggerOperation? triggerOperation, bool fromDataAnnotation = false);
static member CanSetTriggerOperation : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionTriggerBuilder * Nullable<Microsoft.Azure.Cosmos.Scripts.TriggerOperation> * bool -> bool
<Extension()>
Public Function CanSetTriggerOperation (triggerBuilder As IConventionTriggerBuilder, triggerOperation As Nullable(Of TriggerOperation), Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- triggerBuilder
- IConventionTriggerBuilder
The builder for the trigger being configured.
- triggerOperation
- Nullable<TriggerOperation>
The Cosmos DB trigger operation.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
true if the Cosmos DB trigger operation can be set for this trigger.