Udostępnij za pośrednictwem


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 _
)
public Trigger (
    SqlSmoObject parent,
    string name
)
public:
Trigger (
    SqlSmoObject^ parent, 
    String^ name
)
public Trigger (
    SqlSmoObject parent, 
    String name
)
public function Trigger (
    parent : SqlSmoObject, 
    name : String
)

Parameters

  • parent
    A SqlSmoObject object value that specifies the parent of the trigger.
  • name
    A String value that specifies the name of the trigger.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Create, Alter, and Remove a Trigger in Visual Basic .NET

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

Trigger Class
Trigger Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Creating, Altering, and Removing Triggers
DML Triggers
CREATE TRIGGER (Transact-SQL)