IVsDataObjectCollection.IndexOf 方法 (String)

返回数据对象的索引。与指定的标识符的集合。

命名空间:  Microsoft.VisualStudio.Data.Services
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Function IndexOf ( _
    identifier As String _
) As Integer
int IndexOf(
    string identifier
)
int IndexOf(
    String^ identifier
)
abstract IndexOf : 
        identifier:string -> int 
function IndexOf(
    identifier : String
) : int

参数

  • identifier
    类型:System.String
    包含唯一标识请求的数据对象的标识符部件的字符串,用分隔符。

返回值

类型:System.Int32
整数值,大于或等于0,表示数据对象的索引。与指定的标识符的集合的或-1;如果找不到数据对象。

.NET Framework 安全性

请参见

参考

IVsDataObjectCollection 接口

IndexOf 重载

Microsoft.VisualStudio.Data.Services 命名空间