MsmqTransportBindingElement.MaxPoolSize 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個整數,指定包含內部訊息佇列(MSMQ)訊息物件的池最大大小。
public:
property int MaxPoolSize { int get(); void set(int value); };
public int MaxPoolSize { get; set; }
member this.MaxPoolSize : int with get, set
Public Property MaxPoolSize As Integer
屬性值
一個整數,指定包含內部訊息佇列物件的池的最大大小。
例外狀況
範例
MsmqTransportBindingElement transportBindingElement = new MsmqTransportBindingElement();
transportBindingElement.MaxPoolSize = 5;
備註
內部訊息佇列訊息物件池用於避免在傳送與接收訊息時分配這些物件。 最大池大小是效能調整參數。 預設值為 8。