Share via


SchedulerPolicy::GetPolicyValue Method

Retrieves the value of the policy key supplied as the _Key parameter.

_CRTIMP unsigned int GetPolicyValue(
   PolicyElementKey _Key
) const;

Parameters

  • _Key
    The policy key to retrieve a value for.

Return Value

If the key specified by the _Key parameter is supported, the policy value for the key cast to an unsigned int.

Remarks

The method will throw invalid_scheduler_policy_key for an invalid policy key.

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

SchedulerPolicy Class

SchedulerPolicy::SetPolicyValue Method

SchedulerPolicy::SetConcurrencyLimits Method

PolicyElementKey Enumeration