IVsDataReaderDescriptor.GetItemIndex メソッド

現在のデータ リーダーに指定されたデータ項目の名前に対応するインデックスを取得します。

名前空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
アセンブリ:  Microsoft.VisualStudio.Data.Services (Microsoft.VisualStudio.Data.Services.dll 内)

構文

'宣言
Function GetItemIndex ( _
    name As String _
) As Integer
int GetItemIndex(
    string name
)
int GetItemIndex(
    String^ name
)
abstract GetItemIndex : 
        name:string -> int 
function GetItemIndex(
    name : String
) : int

パラメーター

  • name
    型 : System.String
    インデックスを取得する日付の項目の名前。

戻り値

型 : System.Int32
項目がない場合は現在のデータ リーダーに指定されたデータ項目の名前に対応するインデックスまたは nullnull 参照 (Visual Basic では Nothing)。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

IVsDataReaderDescriptor インターフェイス

Microsoft.VisualStudio.Data.Services.SupportEntities 名前空間