共用方式為


InstanceContext.ManualFlowControlLimit 屬性

定義

取得或設定執行個體內容可處理的訊息數量限制。

public:
 property int ManualFlowControlLimit { int get(); void set(int value); };
public int ManualFlowControlLimit { get; set; }
member this.ManualFlowControlLimit : int with get, set
Public Property ManualFlowControlLimit As Integer

屬性值

Int32

執行個體內容可處理的訊息數量。

範例

Uri baseAddress = new Uri("http://localhost:8000/ServiceModelSamples/service");

// Create a ServiceHost for the CalculatorService type and provide the base address.
using (ServiceHost serviceHost = new ServiceHost(typeof(CalculatorService), baseAddress))
{
    serviceHost.Open();
    OperationContext operationContext = OperationContext.Current;
    InstanceContext instanceContext = operationContext.InstanceContext;
    instanceContext.ManualFlowControlLimit = 100;
}

備註

ManualFlowControlLimit 值成為零,就無法再處理訊息。

適用於