IBackgroundTaskInstance2.GetThrottleCount(BackgroundTaskThrottleCounter) IBackgroundTaskInstance2.GetThrottleCount(BackgroundTaskThrottleCounter) IBackgroundTaskInstance2.GetThrottleCount(BackgroundTaskThrottleCounter) IBackgroundTaskInstance2.GetThrottleCount(BackgroundTaskThrottleCounter) 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) const;
public uint GetThrottleCount(BackgroundTaskThrottleCounter counter)
Public Function GetThrottleCount(counter As BackgroundTaskThrottleCounter) As uint
var uint = iBackgroundTaskInstance2.getThrottleCount(counter);

Parameters

counter
BackgroundTaskThrottleCounter BackgroundTaskThrottleCounter BackgroundTaskThrottleCounter

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

Returns

uint uint uint

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