ProcessThreadCollection 類別

定義

提供 ProcessThread 物件的強類型集合。

public ref class ProcessThreadCollection : System::Collections::ReadOnlyCollectionBase
public ref class ProcessThreadCollection : System::Collections::ICollection
public class ProcessThreadCollection : System.Collections.ReadOnlyCollectionBase
public class ProcessThreadCollection : System.Collections.ICollection
type ProcessThreadCollection = class
    inherit ReadOnlyCollectionBase
type ProcessThreadCollection = class
    interface ICollection
    interface IEnumerable
Public Class ProcessThreadCollection
Inherits ReadOnlyCollectionBase
Public Class ProcessThreadCollection
Implements ICollection
繼承
ProcessThreadCollection
繼承
ProcessThreadCollection
實作

建構函式

ProcessThreadCollection()

不使用關聯的 ProcessThread 執行個體,初始化 ProcessThreadCollection 類別的新執行個體。

ProcessThreadCollection(ProcessThread[])

使用指定的 ProcessThread 執行個體陣列,初始化 ProcessThreadCollection 類別的新執行個體。

屬性

Count

取得集合所包含的項目數目。

Count

取得 ReadOnlyCollectionBase 執行個體中包含的元素數目。

(繼承來源 ReadOnlyCollectionBase)
InnerList

取得包含於 ReadOnlyCollectionBase 執行個體中的項目清單。

(繼承來源 ReadOnlyCollectionBase)
Item[Int32]

取得索引,用於逐一查看這組處理序執行緒。

方法

Add(ProcessThread)

將處理序執行緒附加至集合。

Contains(ProcessThread)

判斷指定的處理序執行緒是否存在於集合中。

CopyTo(ProcessThread[], Int32)

從指定索引處開始,將 ProcessThread 執行個體的陣列複製到集合。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()

傳回逐一查看集合的列舉值。

GetEnumerator()

傳回可逐一查看 ReadOnlyCollectionBase 執行個體的列舉值。

(繼承來源 ReadOnlyCollectionBase)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IndexOf(ProcessThread)

提供集合內指定執行緒的位置。

Insert(Int32, ProcessThread)

在集合中指定的位置插入處理序執行緒。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Remove(ProcessThread)

從集合刪除處理序執行緒。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

從特定的陣列索引開始,將集合的項目複製到陣列。

ICollection.CopyTo(Array, Int32)

從目標陣列的指定索引開始,將整個 ReadOnlyCollectionBase 複製到相容的一維 Array

(繼承來源 ReadOnlyCollectionBase)
ICollection.IsSynchronized

取得值,表示是否同步化存取集合 (執行緒安全)。

ICollection.IsSynchronized

取得值,指出對 ReadOnlyCollectionBase 物件的存取是否為同步的 (執行緒安全)。

(繼承來源 ReadOnlyCollectionBase)
ICollection.SyncRoot

取得物件,這個物件可以用來對集合進行同步存取。

ICollection.SyncRoot

取得可用來同步存取 ReadOnlyCollectionBase 物件的物件。

(繼承來源 ReadOnlyCollectionBase)

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於