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 命名空间