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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。