共用方式為


IWithChildResource<ParentT>.WithTrigger Method

Definition

Overloads

WithTrigger(String, SqlTriggerResource, CreateUpdateOptions)

Specifies a trigger.

WithTrigger(String, String, TriggerType, TriggerOperation, CreateUpdateOptions)

Specifies a trigger.

WithTrigger(String, SqlTriggerResource, CreateUpdateOptions)

Specifies a trigger.

public Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Definition.IWithAttach<ParentT> WithTrigger (string name, Microsoft.Azure.Management.CosmosDB.Fluent.Models.SqlTriggerResource resource, Microsoft.Azure.Management.CosmosDB.Fluent.Models.CreateUpdateOptions options = default);
abstract member WithTrigger : string * Microsoft.Azure.Management.CosmosDB.Fluent.Models.SqlTriggerResource * Microsoft.Azure.Management.CosmosDB.Fluent.Models.CreateUpdateOptions -> Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Definition.IWithAttach<'ParentT>
Public Function WithTrigger (name As String, resource As SqlTriggerResource, Optional options As CreateUpdateOptions = Nothing) As IWithAttach(Of ParentT)

Parameters

name
String

The name of the trigger.

resource
SqlTriggerResource

The trigger resource, no need to specify id.

options
CreateUpdateOptions

The options for the trigger.

Returns

The next stage of the definition.

Applies to

WithTrigger(String, String, TriggerType, TriggerOperation, CreateUpdateOptions)

Specifies a trigger.

public Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Definition.IWithAttach<ParentT> WithTrigger (string name, string body, Microsoft.Azure.Management.CosmosDB.Fluent.Models.TriggerType triggerType, Microsoft.Azure.Management.CosmosDB.Fluent.Models.TriggerOperation triggerOperation, Microsoft.Azure.Management.CosmosDB.Fluent.Models.CreateUpdateOptions options = default);
abstract member WithTrigger : string * string * Microsoft.Azure.Management.CosmosDB.Fluent.Models.TriggerType * Microsoft.Azure.Management.CosmosDB.Fluent.Models.TriggerOperation * Microsoft.Azure.Management.CosmosDB.Fluent.Models.CreateUpdateOptions -> Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Definition.IWithAttach<'ParentT>
Public Function WithTrigger (name As String, body As String, triggerType As TriggerType, triggerOperation As TriggerOperation, Optional options As CreateUpdateOptions = Nothing) As IWithAttach(Of ParentT)

Parameters

name
String

The name of the trigger.

body
String

The trigger body.

triggerType
TriggerType

The trigger type.

triggerOperation
TriggerOperation

The trigger operation.

options
CreateUpdateOptions

The options for the trigger.

Returns

The next stage of the definition.

Applies to