FieldCount Property
See Also 
SourceCode.SmartObjects.Client Namespace > SmartObjectReader Class : FieldCount Property



Glossary Item Box

Gets the number of columns in the current row.

Syntax

Visual Basic (Declaration) 
Public Overrides ReadOnly Property FieldCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As SmartObjectReader
Dim value As Integer
 
value = instance.FieldCount
C# 
public override int FieldCount {get;}
C++/CLI 
public:
property int FieldCount {
   int get() override;
}

Property Value

The number of columns in the current row.

Exceptions

ExceptionDescription
System.NotSupportedExceptionThere is no current connection to an instance of SQL Server.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also