SqlTriggerAttribute.Event Property

Definition

The type of trigger and what data manipulation language (DML) action activates the trigger.

C#
public string Event { get; set; }

Property Value

A String value representing the type of trigger and what data manipulation language (DML) action activates the trigger.

Remarks

The DML action that activates the trigger could be an UPDATE, a DELETE, or an INSERT action. The type of the trigger can be AFTER or INSTEAD OF. Specifying FOR for the trigger type is the same as specifying AFTER.

The Event property is required.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1