Trigger Trigger Trigger Constructors

Definition

Overloads

Trigger() Trigger() Trigger()

Initializes a new instance of the Trigger class.

Trigger(SqlSmoObject, String) Trigger(SqlSmoObject, String) Trigger(SqlSmoObject, String)

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

Trigger() Trigger() Trigger()

Initializes a new instance of the Trigger class.

public:
 Trigger();
public Trigger ();
Public Sub New ()

Examples

Creating, Altering, and Removing Triggers

Remarks

The default constructor initializes any fields to their default values.

Trigger(SqlSmoObject, String) Trigger(SqlSmoObject, String) Trigger(SqlSmoObject, String)

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

public:
 Trigger(Microsoft::SqlServer::Management::Smo::SqlSmoObject ^ parent, System::String ^ name);
public Trigger (Microsoft.SqlServer.Management.Smo.SqlSmoObject parent, string name);
Public Sub New (parent As SqlSmoObject, name As String)
Parameters
parent
SqlSmoObject SqlSmoObject SqlSmoObject

A SqlSmoObject object value that specifies the parent of the trigger.

name
String String String

A String value that specifies the name of the trigger.

Examples

Creating, Altering, and Removing Triggers

Applies to