MessageQueue.InfiniteQueueSize Feld

Definition

Gibt an, dass für eine Warteschlange keine Größenbeschränkung vorhanden ist.

public: static initonly long InfiniteQueueSize;
public static readonly long InfiniteQueueSize;
 staticval mutable InfiniteQueueSize : int64
Public Shared ReadOnly InfiniteQueueSize As Long 

Feldwert

Beispiele

Im folgenden Codebeispiel wird die Verwendung des InfiniteQueueSize Elements veranschaulicht.

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

Hinweise

Dieses Element wird häufig verwendet, wenn Einstellung MaximumJournalSize oder MaximumQueueSize.

Gilt für:

Weitere Informationen