4.3 Scenario: Pausing an OutgoingQueue

The following diagram depicts the use of MSMQManagement and MSMQOutgoingQueueManagement to pause transmission of messages from an OutgoingQueue. First, an instance of the MSMQManagement object is created. Next, the MSMQManagement.Init method is called to initialize the instance to represent the state of the OutgoingQueue of interest. To obtain functionality specific to OutgoingQueue data elements, the MSMQManagement instance is queried as described in section 3.5.3 to obtain an MSMQOutgoingQueueManagement instance. Finally, the MSMQOutgoingQueueManagement.Pause method is called.

Pausing an OutgoingQueue

Figure 5: Pausing an OutgoingQueue