مشاركة عبر


Trigger Constructor (SqlSmoObject, String)

Initializes a new instance of the Trigger class on the specified object, and with the specified name.

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

Syntax

'Declaration
Public Sub New ( _
    parent As SqlSmoObject, _
    name As String _
)
'Usage
Dim parent As SqlSmoObject 
Dim name As String 

Dim instance As New Trigger(parent, _
    name)
public Trigger(
    SqlSmoObject parent,
    string name
)
public:
Trigger(
    SqlSmoObject^ parent, 
    String^ name
)
new : 
        parent:SqlSmoObject * 
        name:string -> Trigger
public function Trigger(
    parent : SqlSmoObject, 
    name : String
)

Parameters

Examples

Creating, Altering, and Removing Triggers

See Also

Reference

Trigger Class

Trigger Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

DML Triggers

CREATE TRIGGER (Transact-SQL)