Sun Java System Message Queue 4.2 Developer's Guide for C Clients

MQSetStringProperty

The MQSetStringProperty function sets an MQString property with the specified key to the specified value.


MQSetStringProperty
                 (const MQPropertiesHandle propertiesHandle,
                  ConstMQString key,
                  ConstMQString value);

Return Value

MQStatus. See the MQStatusIsError() function for more information.

Parameters

propertiesHandle

A handle to the properties object whose property value for the specified key you want to set. You get this handle from the MQCreateProperties() function.

key

The name of a property key. The library makes a copy of the property key

value

The property value to set. The library makes a copy of the value.

The library makes a copy of the property key and also makes a copy of the value.