Share via


SetInt16 Method

Sets the value of the specified column to the passed-in Int16 value.

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

Syntax

'Declaration
Public Sub SetInt16 ( _
    ordinal As Integer, _
    value As Short _
)
'Usage
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim value As Short

instance.SetInt16(ordinal, value)
public void SetInt16(
    int ordinal,
    short value
)
public:
void SetInt16(
    int ordinal, 
    short value
)
member SetInt16 : 
        ordinal:int * 
        value:int16 -> unit 
public function SetInt16(
    ordinal : int, 
    value : short
)

Parameters

Remarks

The underlying column must be of type tinyint.

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

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

See Also

Reference

SqlCeResultSet Class

SqlCeResultSet Members

System.Data.SqlServerCe Namespace