CpuCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
CPU 集合類別
public sealed class CpuCollection : System.Collections.ICollection
type CpuCollection = class
interface ICollection
interface IEnumerable
Public NotInheritable Class CpuCollection
Implements ICollection
- 繼承
-
CpuCollection
- 實作
屬性
| 名稱 | Description |
|---|---|
| AffitinizedCPUs |
會退回 Affitinized CPU |
| Count |
集合元素總數 |
| IsSynchronized |
如果集合是同步的 |
| Item[Int32] |
從索引中取得特定 CPU |
| SyncRoot |
回傳集合的 SyncRoot |
方法
| 名稱 | Description |
|---|---|
| CopyTo(Array, Int32) |
從索引開始,將集合中的 CPU 複製到 Array |
| CopyTo(Cpu[], Int32) |
從索引開始,將集合中的 CPU 複製到 CPU 陣列 |
| GetByID(Int32) |
從 ID 取得一個粒子 CPU |
| GetElementAt(Int32) |
從索引中取得特定 CPU |
| GetEnumerator() |
要取得列舉員 |
| SetAffinityToAll(Boolean) |
設定所有 CPU 的親和力 |
| SetAffinityToRange(Int32, Int32, Boolean, Boolean) |
會將 Affinity 設定為一系列提供的 CPU |
| SetAffinityToRange(Int32, Int32, Boolean) |
會將親和度設定為一系列提供的 CPU。如果存在 CPU Id 不存在,此方法會拋出例外 |