Collapse All Expand All

.NET Framework Class Library
ObjectMessage Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Gets or sets the object content of the ObjectMessage.

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.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 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
--- | ---
TIBCO.EMS..::.MessageFormatException | If the serialization or deserialization of the object failed

# See Also

ObjectMessage Class
TIBCO.EMS Namespace