IBackgroundTaskInstance2.GetThrottleCount 方法

定义

检索后台任务因使用过多资源而暂停的次数。

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。

返回

UInt32

unsigned int

uint32_t

此方法返回后台任务因超出其指定资源类型的配额而被挂起的次数。

适用于