MQManagedObject.NET class
Use MQManagedObject to inquire and set attributes of MQDestination, MQProcess, MQQueueManager, and MQSubscription. MQManagedObject is a superclass of these classes.
Classes
System.Object | └─ IBM.WMQ.MQBase | └─ IBM.WMQ.MQBaseObject | └─ IBM.WMQ.MQManagedObject | └─ IBM.WMQ.MQProcess | └─ IBM.WMQ.MQQueueManager | └─ IBM.WMQ.MQSubscription | └─ IBM.WMQ.MQDestinationpublic class IBM.WMQ.MQManagedObject extends IBM.WMQ.MQBaseObject;
Properties
Test for MQException being thrown when getting properties.
- public string AlternateUserId {get; set;}
- The alternate user ID, if any, set when the resource was opened. AlternateUserID.set is ignored when issued for an object that is opened. AlternateUserId is not valid for subscriptions.
- public int CloseOptions {get; set;}
-
Set this attribute to control the way the resource is closed. The default value is MQC.MQCO_NONE. MQC.MQCO_NONE s the only permissible value for all resources other than permanent dynamic queues, temporary dynamic queues, subscriptions, and topics that are being accessed by the objects that created them.
For queues and topics, the following additional values are permissible:- MQC.MQCO_DELETE
- Delete the queue if there are no messages.
- MQC.MQCO_DELETE_PURGE
- Delete the queue, purging any messages on it.
- MQC.MQCO_QUIESCE
- Request the queue be closed, receiving a warning if any messages remain (allowing them to be retrieved before final closing).
For subscriptions, the following additional values are permissible:
- MQC.MQCO_KEEP_SUB
- The subscription is not deleted. This option is valid only if the original subscription is durable. MQC.MQCO_KEEP_SUB is the default value for a durable topic.
- MQC.MQCO_REMOVE_SUB
- The subscription is deleted. MQC.MQCO_REMOVE_SUB is the default value for a non-durable, unmanaged topic.
- MQC.MQCO_PURGE_SUB
- The subscription is deleted. MQC.MQCO_PURGE_SUB is the default value for a non-durable, managed topic.
- public MQQueueManager ConnectionReference {get;}
- The queue manager to which this resource belongs.
- public string MQDescription {get;}
- The description of the resource as held by the queue manager. MQDescription returns an empty string for subscriptions and topics.
- public boolean IsOpen {get;}
- Indicates whether the resource is currently open.
- public string Name {get;}
- The name of the resource. The name is either the supplied on the access method, or the allocated by the queue manager for a dynamic queue.
- public int OpenOptions {get; set;}
- OpenOptions are set when an IBM MQ object is opened. The OpenOptions.set method is ignored and does not cause an error. Subscriptions have no OpenOptions.
Methods
- public virtual void Close();
- Throws MQException.
- public string GetAttributeString(int selector, int length);
- Throws MQException.
- public void Inquire(int[] selectors, int[] intAttrs, byte[] charAttrs);
- Throws MQException.
- public void Set(int[] selectors, int[] intAttrs, byte[] charAttrs);
- Throws MQException.
- public void SetAttributeString(int selector, string value, int length);
- Throws MQException.
Constructors
- protected MQManagedObject()
- Constructor method. This object is an abstract base class which cannot be instantiated by itself.