Send feedback on this topic.
Teradata.Client.Provider
FieldCount Property



Teradata.Client.Provider Namespace > TdDataReader Class : FieldCount Property
Gets the number of fields (columns) in the current result set.
Syntax
'Declaration
 
Public Overrides NotOverridable ReadOnly Property FieldCount As Integer
'Usage
 
Dim instance As TdDataReader
Dim value As Integer
 
value = instance.FieldCount
public override int FieldCount {get;}
public:
property int FieldCount {
   int get() override;
}

Property Value

The number of fields (columns) in the current result set.
Exceptions
ExceptionDescription
The TdDataReader is closed.
Remarks
FieldCount returns the number of fields in the current result set. Values range from 0 to the maximum number of columns allowed within a result set (for example, 2048 for V2R5).
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdDataReader Class
TdDataReader Members