[TIBCO.EMS.UFOCLIENT .NET client library 7.0 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

ExceptionCondition
MessageFormatExceptionIf the serialization or deserialization of the object failed

See Also