SqlTriggerContext::TriggerAction Property

 

Indicates what action fired the trigger.

Namespace:   Microsoft.SqlServer.Server
Assembly:  System.Data (in System.Data.dll)

public:
property TriggerAction TriggerAction {
	TriggerAction get();
}

Property Value

Type: Microsoft.SqlServer.Server::TriggerAction

The action that fired the trigger as a TriggerAction.

The following example shows an auditing trigger. If an Insert or Delete action occurred, the affected rows are retrieved from the INSERTED and DELETED tables.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: