IBackgroundTaskInstance2.GetThrottleCount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
This method returns the number of times the background task has been suspended for exceeding its quota of the indicated resource type.