ContainsAsync Method ContainsAsync(T) Determines whether the collection contains an item. Declaration Task<bool> ContainsAsync(T item) Parameters T item The item. Returns Task<bool> true if the collection contains the item; otherwise false.