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.