語言

HostingEnvironment.DecrementBusyCount 方法

定義

將託管環境中繁忙物件數量減少一。

public:
 static void DecrementBusyCount();
public static void DecrementBusyCount();
static member DecrementBusyCount : unit -> unit
Public Shared Sub DecrementBusyCount ()

備註

當一個忙碌的註冊物件完成工作時,會呼叫該 DecrementBusyCount 方法來通知 HostingEnvironment 該物件已完成處理,並將忙碌物件數量減少一。

如果忙碌計數大於零,即使沒有待處理請求,主機應用程式也不會逾時。

每次呼叫DecrementBusyCount方法時,必須有一次呼叫。IncrementBusyCount

適用於