共用方式為


ResourceDictionary.ICollection<KeyValuePair<String,Object>>.Contains 方法

定義

傳回值,指出字典是否包含 item 中的值,且是以 item 中的索引鍵來檢索。

bool ICollection<KeyValuePair<string,object>>.Contains (System.Collections.Generic.KeyValuePair<string,object> item);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool

參數

item
System.Collections.Generic.KeyValuePair<System.String,System.Object>

要新增的項目。

傳回

System.Boolean

實作

System.Collections.Generic.ICollection`1.Contains(`0)

適用於