메서드 대기열에서 빼기
대기열에서 빼기 ()
IQueue의 시작 부분에 있는 개체를 제거하고 반환합니다.
선언
T Dequeue()
반품
| 타입 | 기술설명 |
|---|---|
| T | IQueue의 시작 부분에서 제거되는 개체입니다. |
예
다음 코드 샘플은 분산 대기열에서 객체를 대기열에서 빼는 방법을 보여줍니다.
ICache cache = CacheManager.GetCache("demoClusteredCache");
string dataTypeName = "DistributedQueue";
IDistributedQueue<Product> queue = cache.DataTypeManager.GetQueue<Product>(dataTypeName);
Product product = queue.Dequeue();