[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

A wrapper class of the Queue class to make the Queue class thread safe.

Namespace: Microsoft.WebSolutionsPlatform.Event
Assembly: WspEventRouter (WspEventRouter)

Syntax

Visual Basic (Declaration)
Public Class SynchronizationQueue(Of T) _
	Inherits Queue(Of T) _
	Implements IDisposable
C#
public class SynchronizationQueue<T> : Queue<T>, IDisposable
C++
generic<typename T>
public ref class SynchronizationQueue : public Queue<T>, IDisposable

Methods

IconTypeDescription
Clear()
Removes all objects from the Queue<(Of T>).
Contains(T)
Determines whether an element is in the Queue<(Of T>).
CopyTo(T[](), Int32)
Copies the Queue<(Of T>) elements to an existing one-dimensional Array, starting at the specified array index.
Dequeue()
Removes an object from the Generic Queue
Dequeue(Int32)
Removes an object from the Generic Queue
Dispose()
Disposes of the object.
Dispose(Boolean)
Disposes of the object.
Enqueue(T)
Adds an object to the end of the Generic Queue
Enqueue(T, Int32)
Adds an object to the end of the Generic Queue
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Destructor
GetEnumerator()
Returns an enumerator that iterates through the Queue<(Of T>).
GetHashCode()
Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
GetType()
Gets the Type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
Peek()
Returns the object at the beginning of the Queue<(Of T>) without removing it.
IEnumerable<(Of T>).GetEnumerator()
ICollection.CopyTo(Array, Int32)
IEnumerable.GetEnumerator()
ToArray()
Copies the Queue<(Of T>) elements to a new array.
ToString()
Returns a String that represents the current Object.
TrimExcess()
Sets the capacity to the actual number of elements in the Queue<(Of T>), if that number is less than 90 percent of current capacity.

Constructors

IconTypeDescription
SynchronizationQueue<(Of T>)New()
Default constructor
SynchronizationQueue<(Of T>)New(Int32)
Default constructor
SynchronizationQueue<(Of T>)New(IEnumerable<(Of T>))
Default constructor

Properties

IconTypeDescription
Count
Gets the number of elements contained in the Queue<(Of T>).
ICollection.IsSynchronized
ICollection.SyncRoot
Timeout
Timeout for blocking calls, default is 10000

Inheritance Hierarchy

System.Object
  System.Collections.Generic.Queue<(Of T>)<>
    Microsoft.WebSolutionsPlatform.Event.SynchronizationQueue<(Of T>)