MessageQueue.InfiniteQueueSize 欄位

定義

指定佇列沒有大小限制。Specifies that no size restriction exists for a queue.

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

欄位值

Int64

範例

下列程式碼範例將示範如何使用 InfiniteQueueSize 成員。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());

備註

當設定或時,經常會使用這個成員 MaximumJournalSize MaximumQueueSizeThis member is frequently used when setting MaximumJournalSize or MaximumQueueSize.

適用於

另請參閱