Link to home
Start Free TrialLog in
Avatar of Sha1395
Sha1395

asked on

MSMQ Peek and Receive

Hi All,

am trying to populate my msqmq Q in my datagrid view,

i used below property to receive the queue but
mes = Queue.Receive(new TimeSpan(0, 0, 3)); problem for this is it will delete the queue also,so some one suggest use peek

mes = Queue.Peek(new TimeSpan(0, 0, 3)); but it gets only the top queue only,

how can i get all the queue's i was reading something about enumerator but couldn't find examples to solve my problem
SOLUTION
Avatar of BourbonKid
BourbonKid
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sha1395
Sha1395

ASKER

I solved the problem by myself but expert comment is helpful to understand some new way to think about it