Partilhar via


IWithChildResource<ParentT>.WithTrigger Método

Definição

Sobrecargas

WithTrigger(String, SqlTriggerResource, CreateUpdateOptions)

Especifica um gatilho.

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

Especifica um gatilho.

WithTrigger(String, SqlTriggerResource, CreateUpdateOptions)

Especifica um gatilho.

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)

Parâmetros

name
String

O nome do gatilho.

resource
SqlTriggerResource

O recurso de gatilho, sem necessidade de especificar id.

options
CreateUpdateOptions

As opções para o gatilho.

Retornos

O próximo estágio da definição.

Aplica-se a

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

Especifica um gatilho.

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)

Parâmetros

name
String

O nome do gatilho.

body
String

O corpo do gatilho.

triggerType
TriggerType

o tipo de gatilho.

triggerOperation
TriggerOperation

A operação de gatilho.

options
CreateUpdateOptions

As opções para o gatilho.

Retornos

O próximo estágio da definição.

Aplica-se a