OracleAQQueue(string, OracleConnection)
This constructor takes a queue name and connection to initialize a queue object. The connection does not need to be open during the queue object construction.
Declaration
// C# public OracleAQQueue(string name, OracleConnection con);
Parameters
-
nameName of the queue as specified in the database.
-
conAn
OracleConnectionobject that connects to the queue.
Exceptions
ArgumentNullException - Either the connection is null or queue name is null.
ArgumentException - Queue name is empty.
Remarks
The connection can be accessed using the Connection property, and it must be opened before calling any operational APIs such as Enqueue and Dequeue.
Creating an OracleAQQueue object does not check for the existence of the queue in the database.