June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to send a custom object to another application via a message queue.
Create a serializable class that has a zero-argument constructor and includes no read-only properties. Wrap an instance of this class in a Message object and pass the Message object to the MessageQueue.Send method.
Message queues accept simple text messages and custom .NET objects. In order to use a custom object, it must satisfy three criteria:
The class must have a public constructor with no arguments. .NET uses this constructor to re-create the object when the message is received.
The class must be marked with the Serializable attribute.
All class properties must be readable and writable. Read-only ...
Read now
Unlock full access