메서드 DequeueBulk
DequeueBulk(Int32)
IQueue의 시작 부분에 있는 객체 목록을 제거하고 반환합니다.
선언
IList<T> DequeueBulk(int maxitems = 10)
파라미터
| 타입 | 이름 | 기술설명 |
|---|---|---|
| 시스템.Int32 | 최대항목 | IQueue에서 제거할 항목의 최대 개수입니다. |
반품
| 타입 | 기술설명 |
|---|---|
| 시스템.컬렉션.일반.IList | IQueue의 시작 부분에서 제거되는 객체 목록입니다. |
예
다음 코드 샘플은 분산 큐에서 객체 목록을 제거하는 방법을 보여줍니다.
ICache cache = CacheManager.GetCache("demoClusteredCache");
string dataTypeName = "DistributedQueue";
IDistributedQueue<Product> queue = cache.DataTypeManager.GetQueue<Product>(dataTypeName);
IList<Product> product = queue.DequeueBulk();