Jaa


IBackgroundTaskInstance2.GetThrottleCount 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 const& 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

unsigned int

uint32_t

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

Applies to