共用方式為


SchedulerPolicy::GetPolicyValue 方法

擷取提供做為 _Key 參數的原則機碼的值。

unsigned int GetPolicyValue(
   PolicyElementKey _Key
) const;

參數

  • _Key
    要擷取值的原則機碼。

傳回值

如果支援 _Key 參數所指定的索引鍵,原則值會轉換成 unsigned int

備註

方法會針對不正確的原則機碼擲回 invalid_scheduler_policy_key

需求

標頭: concrt.h

Namespace: 並行存取

請參閱

參考

SchedulerPolicy 類別

SchedulerPolicy::SetPolicyValue 方法

SchedulerPolicy::SetConcurrencyLimits 方法

PolicyElementKey 列舉