SqlCeResultSet.GetString Method

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

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

Syntax

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

returnValue = instance.GetString(ordinal)
public override string GetString(
    int ordinal
)
public:
virtual String^ GetString(
    int ordinal
) override
abstract GetString : 
        ordinal:int -> string 
override GetString : 
        ordinal:int -> string 
public override function GetString(
    ordinal : int
) : String

Parameters

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

Return Value

Type: System.String
The value of the column at the specified index.

Implements

IDataRecord.GetString(Int32)

Remarks

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

See Also

Reference

SqlCeResultSet Class

System.Data.SqlServerCe Namespace