IBackgroundTaskInstance2.GetThrottleCount 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取背景工作已暫停使用太多資源的次數。
public:
unsigned int GetThrottleCount(BackgroundTaskThrottleCounter counter);
uint32_t GetThrottleCount(BackgroundTaskThrottleCounter const& counter);
public uint GetThrottleCount(BackgroundTaskThrottleCounter counter);
function getThrottleCount(counter)
Public Function GetThrottleCount (counter As BackgroundTaskThrottleCounter) As UInteger
參數
- counter
- BackgroundTaskThrottleCounter
指出要包含在節流計數中的資源類型:網路、CPU 或兩者。
傳回
這個方法會傳回背景工作已暫停的次數,以超過所指定資源類型的配額。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應