다음을 통해 공유


IDataReader.FieldCount 속성

Gets the number of fields in the data reader.

네임스페이스:  Microsoft.ReportingServices.DataProcessing
어셈블리:   Microsoft.ReportingServices.SharePoint.UI.WebParts(Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces(Microsoft.ReportingServices.Interfaces.dll)

구문

‘선언
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.

참고 항목

참조

IDataReader 인터페이스

Microsoft.ReportingServices.DataProcessing 네임스페이스