次の方法で共有


SchedulerPolicy::GetPolicyValue Method

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

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