The NMS Class Library (.Net Messaging Library)

MessagePropertyHelper.SetObjectProperty Method 

public void SetObjectProperty(
   ActiveMQMessage message,
   string name,
   object value
);

See Also

MessagePropertyHelper Class | ActiveMQ.OpenWire Namespace