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()

初始化类的新实例 ProcessThreadCollection ,没有关联的 ProcessThread 实例。

ProcessThreadCollection(ProcessThread[])

使用指定的实例数组ProcessThreadCollection初始化类的新实例ProcessThread

属性

名称 说明
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)

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

适用于