SqlContext.TriggerContext Property

 

Gets the trigger context used to provide the caller with information about what caused the trigger to fire, and a map of the columns that were updated.

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

public static SqlTriggerContext TriggerContext { get; }

Property Value

Type: Microsoft.SqlServer.Server.SqlTriggerContext

An instance of SqlTriggerContext if a trigger context is available, or null if called outside of a trigger invocation.

The SqlTriggerContext object can only be retrieved from within a common language runtime trigger.

If the TriggerContext property is accessed from outside of SQL Server, a NotSupportedException is thrown.

This property is read-only.

.NET Framework
Available since 2.0
Return to top
Show: