TableViewBase.Triggers Property

 

Applies To: SQL Server 2016 Preview

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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

[SfcObjectAttribute(SfcContainerRelationship.ChildContainer, 
    SfcContainerCardinality.ZeroToAny, typeof(Trigger), SfcObjectFlags.Design)]
public TriggerCollection Triggers { get; }
public:
[SfcObjectAttribute(SfcContainerRelationship::ChildContainer, 
    SfcContainerCardinality::ZeroToAny, (Trigger^::typeid), SfcObjectFlags::Design)]
property TriggerCollection^ Triggers {
    TriggerCollection^ get();
}
[<SfcObjectAttribute(SfcContainerRelationship.ChildContainer,
    SfcContainerCardinality.ZeroToAny, typeof(Trigger), SfcObjectFlags.Design)>]
member Triggers : TriggerCollection with get
<SfcObjectAttribute(SfcContainerRelationship.ChildContainer, SfcContainerCardinality.ZeroToAny,
    GetType(Trigger), SfcObjectFlags.Design)>
Public ReadOnly Property Triggers As TriggerCollection

Property Value

Type: Microsoft.SqlServer.Management.Smo.TriggerCollection

A TriggerCollection object that represents all the triggers that are defined on the table or view.

Examples

Legacy Code Example

Working with Database Objects

See Also

TableViewBase Class
Microsoft.SqlServer.Management.Smo Namespace

CREATE TABLE (Transact-SQL)
CREATE VIEW (Transact-SQL)
Unable to find linked topic '811e00f9-303f-42b5-8bd4-2cdb829c84e9'.Unable to find linked topic 'cd917eae-1b89-40d5-8215-3b8add128f16'.

Return to top