Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am sending a message from my windows application to a private queue, which is working fine. Now I am trying to set time expiry before sending the message from windows application.
Also how long will msmq message stays in queue? 4 days?

What I have tried:

I tried this, not even sure if it is correct way of doing it:
msMq.MessageReadPropertyFilter.TimeToBeReceived = true;
               System.Messaging.Message msg = msMq.Peek(TimeSpan.FromSeconds(10.0));
               msMq.Send(job);


Thanks!
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900