none
Message Live time - read and set ! RRS feed

All replies

  • Ah I think I have found my error

     TimeSpan Ts = new TimeSpan(4, 0, 0);
                    MessageQueue myQueue = new MessageQueue(theQue);
                    System.Messaging.Message m = new Message();
                    m.Label = labelID;
                    System.IO.StreamWriter writer = new System.IO.StreamWriter(m.BodyStream, Encoding.Unicode);
                    writer.Write(value);
                    writer.Flush();
                    m.BodyType = 8;
                    m.TimeToBeReceived = Ts;

    I will set this to 5 days ( =120 )


    andrew

    Thursday, March 21, 2019 4:00 PM