메소드 포함
포함(T)
요소가 IQueue에 있는지 여부를 확인합니다.
선언
bool Contains(T item)
파라미터
| 타입 | 이름 | 기술설명 |
|---|---|---|
| T | 목 | 찾을 개체입니다. |
반품
| 타입 | 기술설명 |
|---|---|
| 시스템.부울 | 그렇지 않으면 IQueue에 있는 경우 True입니다. 거짓. |
예
다음 코드 샘플은 요소가 분산 대기열에 존재하는지 확인하는 방법을 보여줍니다.
ICache cache = CacheManager.GetCache("demoClusteredCache");
string dataTypeName = "DistributedQueue";
IDistributedQueue<Product> queue = cache.DataTypeManager.GetQueue<Product>(dataTypeName);
Product product = new Product();
product.Id = 1;
product.Name = "Chai";
bool result = queue.Contains(product);