GetFieldType 方法
Gets the Type information corresponding to the type of object that is returned from GetValue.
命名空間: Microsoft.ReportingServices.DataProcessing
組件: Microsoft.ReportingServices.Interfaces (在 Microsoft.ReportingServices.Interfaces.dll 中)
Microsoft.ReportingServices.SharePoint.UI.WebParts (在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
語法
'宣告
Function GetFieldType ( _
fieldIndex As Integer _
) As Type
'用途
Dim instance As IDataReader
Dim fieldIndex As Integer
Dim returnValue As Type
returnValue = instance.GetFieldType(fieldIndex)
Type GetFieldType(
int fieldIndex
)
Type^ GetFieldType(
int fieldIndex
)
abstract GetFieldType :
fieldIndex:int -> Type
function GetFieldType(
fieldIndex : int
) : Type
參數
- fieldIndex
型別:System. . :: . .Int32
The index of the field to find.
傳回值
型別:System. . :: . .Type
The Type information corresponding to the type of Object that would be returned from GetValue.
備註
Exceptions
Exception type |
Condition |
---|---|
IndexOutOfRangeException |
The index passed was outside the range of 0 through FieldCount. |