Contains 方法
指出集合是否包含給定的項目。
命名空間: Microsoft.ComplexEventProcessing
組件: Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)
語法
public bool Contains(
KeyValuePair<string, T> item
)
參數
- item
型別:System.Collections.Generic. . :: . .KeyValuePair< (Of < ( <'String, T> ) > ) >
要在集合中搜尋的項目。
傳回值
型別:System. . :: . .Boolean
如果項目包含在集合中,則為 true,否則為 false。
實作
ICollection< (Of < ( <'T> ) > ) >. . :: . .Contains(T)