ReadOnlyLinkedElementCollection<T>.IndexOf 方法

获取一个角色扮演者的索引集合内的。

命名空间:  Microsoft.VisualStudio.Modeling
程序集:  Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

语法

声明
Public Function IndexOf ( _
    item As T _
) As Integer
public int IndexOf(
    T item
)

参数

  • item
    类型:T
    查找的角色扮演者集合中。

返回值

类型:System.Int32
角色扮演者的索引位置。集合或 -1 中,如果未找到。

实现

IList<T>.IndexOf(T)

.NET Framework 安全性

请参见

参考

ReadOnlyLinkedElementCollection<T> 类

Microsoft.VisualStudio.Modeling 命名空间