你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
IWithChildResource<ParentT>.WithTrigger 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WithTrigger(String, SqlTriggerResource, CreateUpdateOptions) |
指定触发器。 |
WithTrigger(String, String, TriggerType, TriggerOperation, CreateUpdateOptions) |
指定触发器。 |
WithTrigger(String, SqlTriggerResource, CreateUpdateOptions)
指定触发器。
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)
参数
- name
- String
触发器的名称。
- resource
- SqlTriggerResource
触发器资源,无需指定 ID。
- options
- CreateUpdateOptions
触发器的选项。
返回
定义的下一阶段。
适用于
WithTrigger(String, String, TriggerType, TriggerOperation, CreateUpdateOptions)
指定触发器。
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)
参数
- name
- String
触发器的名称。
- body
- String
触发器正文。
- triggerType
- TriggerType
触发器类型。
- triggerOperation
- TriggerOperation
触发器操作。
- options
- CreateUpdateOptions
触发器的选项。
返回
定义的下一阶段。