CompletionCode property
Read-only. Returns the IBM MQ completion code set by the most recent method or property set issued against any IBM MQ object.
It is reset to MQCC_OK when a method or a property set is invoked successfully against any MQAX object.
An error event handler can inspect this property to diagnose the error, without having to know which object was involved.
Use the CompletionCode and ReasonCode in the MQSession object is very convenient for simple error handlers.
Note: See Threading for restrictions on the use of MQSession error codes in threaded applications.
- Defined in:
- MQSession class
- Data Type:
- Long
- Values:
- MQCC_OK
- MQCC_WARNING
- MQCC_FAILED
- Syntax:
- To get: completioncode& = MQSession.CompletionCode