共用方式為


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
    類型:String

    要擷取索引之日期項目名稱。

傳回值

類型:Int32
使用指定的資料項目名稱對應的索引為目前資料讀取器或 nullnull 參考 (即 Visual Basic 中的 Nothing) ,如果找不到項目。

.NET Framework 安全性

請參閱

參考

IVsDataReaderDescriptor 介面

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