Queue.Destroy

Method

Visual Basic

Public Sub Destroy()

C#

public void Destroy();

Purpose

Destroy a queue.

Remarks

When a queue is destroyed, events that remain in the queue are discarded.

Destroying a queue invalidates all events associated with the queue.

A program must not call Queue.Destroy on the default queue. Closing the Environment destroys the default queue; see Environment.Close.