IDataReader.FieldCount 属性
Gets the number of fields in the data reader.
命名空间: Microsoft.ReportingServices.DataProcessing
程序集: Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.dll 中)
Microsoft.ReportingServices.SharePoint.UI.WebParts(在 Microsoft.ReportingServices.SharePoint.UI.WebParts.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.