你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IWithChildResource.WithTrigger 方法

定义

重载

WithTrigger(String, SqlTriggerResource, CreateUpdateOptions)

指定触发器。

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

指定触发器。

WithTrigger(String, SqlTriggerResource, CreateUpdateOptions)

指定触发器。

public Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Update.IUpdate 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.Update.IUpdate
Public Function WithTrigger (name As String, resource As SqlTriggerResource, Optional options As CreateUpdateOptions = Nothing) As IUpdate

参数

name
String

触发器的名称。

resource
SqlTriggerResource

触发器资源,无需指定 ID。

options
CreateUpdateOptions

触发器的选项。

返回

更新的下一阶段。

适用于

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

指定触发器。

public Microsoft.Azure.Management.CosmosDB.Fluent.SqlContainer.Update.IUpdate 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.Update.IUpdate
Public Function WithTrigger (name As String, body As String, triggerType As TriggerType, triggerOperation As TriggerOperation, Optional options As CreateUpdateOptions = Nothing) As IUpdate

参数

name
String

触发器的名称。

body
String

触发器正文。

triggerType
TriggerType

触发器类型。

triggerOperation
TriggerOperation

触发器操作。

options
CreateUpdateOptions

触发器的选项。

返回

更新的下一阶段。

适用于