SqlTriggerContext.IsUpdatedColumn(Int32) Method

Definition

Returns true if a column was affected by an INSERT or UPDATE statement.

public:
 bool IsUpdatedColumn(int columnOrdinal);
public bool IsUpdatedColumn (int columnOrdinal);
member this.IsUpdatedColumn : int -> bool
Public Function IsUpdatedColumn (columnOrdinal As Integer) As Boolean

Parameters

columnOrdinal
Int32

The zero-based ordinal of the column.

Returns

true if the column was affected by an INSERT or UPDATE operation.

Exceptions

Called in the context of a trigger where the value of the TriggerAction property is not Insert or Update.

Applies to