SqlCeResultSet.GetSqlString Method

Returns the value of the column at the specified index as type SqlString.

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

Syntax

'Declaration
Public Overrides Function GetSqlString ( _
    ordinal As Integer _
) As SqlString
'Usage
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As SqlString

returnValue = instance.GetSqlString(ordinal)
public override SqlString GetSqlString(
    int ordinal
)
public:
virtual SqlString GetSqlString(
    int ordinal
) override
abstract GetSqlString : 
        ordinal:int -> SqlString 
override GetSqlString : 
        ordinal:int -> SqlString 
public override function GetSqlString(
    ordinal : int
) : SqlString

Parameters

  • ordinal
    Type: System.Int32
    The ordinal position of the column from which to retrieve data.

Return Value

Type: System.Data.SqlTypes.SqlString
The value of the column at the specified index.

Remarks

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

See Also

Reference

SqlCeResultSet Class

System.Data.SqlServerCe Namespace