dotConnect for DB2 Documentation
Devart.Data.DB2 Namespace / DB2DataReader Class / VisibleFieldCount Property

In This Topic
    VisibleFieldCount Property
    In This Topic
    Gets the number of columns in the current row.
    Syntax
    'Declaration
     
    Public Overrides ReadOnly Property VisibleFieldCount As Integer
    public override int VisibleFieldCount {get;}

    Property Value

    When not positioned in a valid record set, 0; otherwise the number of columns in the current record. The default is -1.
    Remarks
    After executing a query that does not return rows, VisibleFieldCount returns 0.
    See Also