MsmqTransportBindingElement.MaxPoolSize 屬性

定義

取得或設定整數,這個整數會指定包含內部訊息佇列 (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。

適用於