共用方式為


TriggerClient.StartCreateOrUpdateTriggerAsync Method

Definition

Creates or updates a trigger.

public virtual System.Threading.Tasks.Task<Azure.Analytics.Synapse.Artifacts.TriggerCreateOrUpdateTriggerOperation> StartCreateOrUpdateTriggerAsync (string triggerName, Azure.Analytics.Synapse.Artifacts.Models.TriggerResource trigger, string ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartCreateOrUpdateTriggerAsync : string * Azure.Analytics.Synapse.Artifacts.Models.TriggerResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Analytics.Synapse.Artifacts.TriggerCreateOrUpdateTriggerOperation>
override this.StartCreateOrUpdateTriggerAsync : string * Azure.Analytics.Synapse.Artifacts.Models.TriggerResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Analytics.Synapse.Artifacts.TriggerCreateOrUpdateTriggerOperation>
Public Overridable Function StartCreateOrUpdateTriggerAsync (triggerName As String, trigger As TriggerResource, Optional ifMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TriggerCreateOrUpdateTriggerOperation)

Parameters

triggerName
String

The trigger name.

trigger
TriggerResource

Trigger resource definition.

ifMatch
String

ETag of the trigger entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

triggerName or trigger is null.

Applies to