Collapse All Expand All

.NET Framework Class Library
ObjectMessage Class See Also

[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]

Gets or sets the object content of the ObjectMessage.

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)

# Syntax

    public Object TheObject { get; set; }

    Public Property TheObject As Object

    public:
    property Object^ TheObject {
    	Object^ get ();
    	void set (Object^ value);
    }

# Remarks

For .NET Compact Framework, only the following object types are currently supported: bool, int, long, short, double, float, byte, bytes, char, string, MapMessage, StreamMessage, short[], int[], long[], float[], double[], or any type that implements TIBCO.EMS.IEMSSerializable.
Attempt to set object of all other types will cause a MessageFormatException to be thrown.
NoteAn object written to an ObjectMessage is not portable. I.e. An object set by an .NET EMS client will only be interpreted correclty by another .NET EMS client. The same is true between .NET Compact Framework clients.

# Exceptions

Exception | Condition
--- | ---
MessageFormatException | If the serialization or deserialization of the object failed

# See Also

ObjectMessage Class
TIBCO.EMS.UFO Namespace