TableViewBase.Triggers 属性

Represents a collection of Trigger objects. Each Trigger object represents a trigger that is defined on the table or view.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(Trigger), SfcObjectFlags.Design)> _
Public ReadOnly Property Triggers As TriggerCollection 
    Get
用法
Dim instance As TableViewBase 
Dim value As TriggerCollection 

value = instance.Triggers
[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Trigger), SfcObjectFlags.Design)]
public TriggerCollection Triggers { get; }
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(Trigger), SfcObjectFlags::Design)]
public:
property TriggerCollection^ Triggers {
    TriggerCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(Trigger), SfcObjectFlags.Design)>]
member Triggers : TriggerCollection
function get Triggers () : TriggerCollection

属性值

类型:Microsoft.SqlServer.Management.Smo.TriggerCollection
A TriggerCollection object that represents all the triggers that are defined on the table or view.

示例

使用数据库对象

请参阅

参考

TableViewBase 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

视图

CREATE TABLE (Transact-SQL)

CREATE VIEW (Transact-SQL)