次の方法で共有


IDataReader.GetValue メソッド

指定したフィールドの値を返します。

名前空間:  Microsoft.ReportingServices.DataProcessing
アセンブリ:   Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)

構文

'宣言
Function GetValue ( _
    fieldIndex As Integer _
) As Object
'使用
Dim instance As IDataReader 
Dim fieldIndex As Integer 
Dim returnValue As Object 

returnValue = instance.GetValue(fieldIndex)
Object GetValue(
    int fieldIndex
)
Object^ GetValue(
    int fieldIndex
)
abstract GetValue : 
        fieldIndex:int -> Object
function GetValue(
    fieldIndex : int
) : Object

パラメーター

  • fieldIndex
    型: System.Int32
    検索するフィールドのインデックスです。

戻り値

型: System.Object
指定したインデックスのフィールドの値です。

説明

例外

例外の種類

条件

IndexOutOfRangeException

渡されたインデックスは、0 から FieldCount の範囲外でした。

関連項目

参照

IDataReader インターフェイス

Microsoft.ReportingServices.DataProcessing 名前空間