SqlCeResultSet.SetDefault Method

Sets the specified column to its default value.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public void SetDefault(
	int ordinal
)

Parameters

ordinal
Type: System.Int32
The ordinal position of the column to set.

If no default constraint is defined for the column, this function sets the column to null.

An exception is thrown if the row is not marked as updatable.

An exception is thrown if no field exists at the specified position.

Show: