Прочетете на английски Редактиране

Споделяне чрез


MessageQueue.InfiniteQueueSize Field

Definition

Specifies that no size restriction exists for a queue.

C#
public static readonly long InfiniteQueueSize;

Field Value

Examples

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

C#
// 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());

Remarks

This member is frequently used when setting MaximumJournalSize or MaximumQueueSize.

Applies to

Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also