HostingEnvironment.IncrementBusyCount 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將託管環境中繁忙物件的數量增加一。
public:
static void IncrementBusyCount();
public static void IncrementBusyCount();
static member IncrementBusyCount : unit -> unit
Public Shared Sub IncrementBusyCount ()
備註
註冊物件會向物件發出 HostingEnvironment 訊號,表示其正在運行,並使忙碌物件數量增加一。
如果忙碌計數大於零,即使沒有待處理請求,主機應用程式也不會逾時。
每次呼叫DecrementBusyCount方法時,必須有一次呼叫。IncrementBusyCount