다음을 통해 공유


FieldCount 속성

Gets the number of fields in the data reader.

네임스페이스:  Microsoft.ReportingServices.DataProcessing
어셈블리:  Microsoft.ReportingServices.Interfaces.dll의 Microsoft.ReportingServices.Interfaces

구문

‘선언
ReadOnly Property FieldCount As Integer
    Get
‘사용 방법
Dim instance As IDataReader
Dim value As Integer

value = instance.FieldCount
int FieldCount { get; }
property int FieldCount {
    int get ();
}
abstract FieldCount : int
function get FieldCount () : int

속성 값

형식: System. . :: . .Int32
When not positioned in a valid recordset, 0; otherwise the number of columns in the current record. The default value is -1.

주의

After executing a query that does not return rows, FieldCount returns -1.