The NMS Class Library (.Net Messaging Library)

ActiveMQMessage.SetObjectProperty Method 

public void SetObjectProperty(
   string name,
   object value
);

See Also

ActiveMQMessage Class | ActiveMQ.Commands Namespace