Partager via


Méthode GetFieldType

Gets the Type information corresponding to the type of object that is returned from GetValue.

Espace de noms :  Microsoft.ReportingServices.DataProcessing
Assemblys :   Microsoft.ReportingServices.Interfaces (en Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (en Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Syntaxe

'Déclaration
Function GetFieldType ( _
    fieldIndex As Integer _
) As Type
'Utilisation
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

Paramètres

Valeur de retour

Type : System. . :: . .Type
The Type information corresponding to the type of Object that would be returned from GetValue.

Notes

Exceptions

Exception type

Condition

IndexOutOfRangeException

The index passed was outside the range of 0 through FieldCount.