Bagikan melalui


OrderedDictionary<TKey,TValue>.KeyCollection.Contains(TKey) Metode

Definisi

Menentukan apakah ICollection<T> berisi nilai tertentu.

public:
 virtual bool Contains(TKey key);
public bool Contains (TKey key);
abstract member Contains : 'Key -> bool
override this.Contains : 'Key -> bool
Public Function Contains (key As TKey) As Boolean

Parameter

key
TKey

Mengembalikan

true jika item ditemukan di ICollection<T>; jika tidak, false.

Penerapan

Berlaku untuk