SqlTriggerContext.ColumnCount Property

 

Gets the number of columns contained by the data table bound to the trigger. This property is read-only.

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

public int ColumnCount { get; }

Property Value

Type: System.Int32

The number of columns contained by the data table bound to the trigger, as an integer.

ColumnCount property is useful to determine the maximum ordinal that IsUpdatedColumn allows for a given trigger invocation.

.NET Framework
Available since 2.0
Return to top
Show: