ServiceHostBase.IncrementManualFlowControlLimit(Int32) 方法

定義

使用指定的增量,增加前往裝載之服務的訊息流量率限制。Increases the limit on the flow rate of messages to the hosted service by a specified increment.

public:
 int IncrementManualFlowControlLimit(int incrementBy);
public int IncrementManualFlowControlLimit (int incrementBy);
member this.IncrementManualFlowControlLimit : int -> int
Public Function IncrementManualFlowControlLimit (incrementBy As Integer) As Integer

參數

incrementBy
Int32

用來增加流量控制限制的訊息數量。The number of messages by which to increase the flow control limit.

傳回

Int32

新增遞增後的新限制。The new limit after the increment is added.

例外狀況

這個值小於零。The value is less than zero.

範例

int newLimit = hostDefault.IncrementManualFlowControlLimit(100);

備註

您可以使用屬性存取這個限制 ManualFlowControlLimitThis limit can be accessed using the ManualFlowControlLimit property.

適用於