TagList.IndexOf(KeyValuePair<String,Object>) 方法

定义

搜索指定的标记,并返回整个 TagList中第一个匹配项的从零开始的索引。

public:
 virtual int IndexOf(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item);
public readonly int IndexOf (System.Collections.Generic.KeyValuePair<string,object?> item);
abstract member IndexOf : System.Collections.Generic.KeyValuePair<string, obj> -> int
override this.IndexOf : System.Collections.Generic.KeyValuePair<string, obj> -> int
Public Function IndexOf (item As KeyValuePair(Of String, Object)) As Integer

参数

item
KeyValuePair<String,Object>

在 中查找的 TagList标记。

返回

标记列表中第一个标记的 item 从零开始的索引。

实现

适用于