IBackgroundTaskInstance2.GetThrottleCount(BackgroundTaskThrottleCounter) Method

Definition

Retrieves the number of times the background task has been suspended for using too many resources.

public:
 unsigned int GetThrottleCount(BackgroundTaskThrottleCounter counter);
uint32_t GetThrottleCount(BackgroundTaskThrottleCounter counter);
public uint GetThrottleCount(BackgroundTaskThrottleCounter counter);
function getThrottleCount(counter)
Public Function GetThrottleCount (counter As BackgroundTaskThrottleCounter) As UInteger

Parameters

counter
BackgroundTaskThrottleCounter

Indicates the type of resource to include in the throttle count: network, CPU, or both.

Returns

UInt32

This method returns the number of times the background task has been suspended for exceeding its quota of the indicated resource type.

Applies to