다음을 통해 공유


IDataReader.GetFieldType 메서드

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

네임스페이스:  Microsoft.ReportingServices.DataProcessing
어셈블리:   Microsoft.ReportingServices.SharePoint.UI.WebParts(Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces(Microsoft.ReportingServices.Interfaces.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.

참고 항목

참조

IDataReader 인터페이스

Microsoft.ReportingServices.DataProcessing 네임스페이스