MessageQueue.InfiniteQueueSize Field

 

Specifies that no size restriction exists for a queue.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public static readonly long InfiniteQueueSize

Field Value

Type: System.Int64

This member is frequently used when setting MaximumJournalSize or MaximumQueueSize.

The following code example demonstrates the use of the InfiniteQueueSize member.

// Set the queue's MaximumQueueSize property to
// MessageQueue.InfiniteQueueSize.
queue.MaximumQueueSize = MessageQueue.InfiniteQueueSize;

// Display the new value of the queue's MaximumQueueSize property.
Console.WriteLine("MessageQueue.MaximumQueueSize: {0}",
    queue.MaximumQueueSize.ToString());

.NET Framework
Available since 1.1
Return to top
Show: