ProcessThreadCollection 类
定义
提供 ProcessThread 对象的强类型集合。Provides a strongly typed collection of ProcessThread objects.
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() |
在没有关联的 ProcessThread 实例的情况下,初始化 ProcessThreadCollection 类的新实例。Initializes a new instance of the ProcessThreadCollection class, with no associated ProcessThread instances. |
| ProcessThreadCollection(ProcessThread[]) |
使用指定的 ProcessThread 实例数组初始化 ProcessThreadCollection 类的新实例。Initializes a new instance of the ProcessThreadCollection class, using the specified array of ProcessThread instances. |
属性
| Capacity | |
| Count |
获取集合中包含的元素数。Gets the number of elements contained in the collection. |
| Count |
获取 ReadOnlyCollectionBase 实例中包含的元素数。Gets the number of elements contained in the ReadOnlyCollectionBase instance. (继承自 ReadOnlyCollectionBase) |
| InnerList |
获取 ReadOnlyCollectionBase 实例中包含的元素的列表。Gets the list of elements contained in the ReadOnlyCollectionBase instance. (继承自 ReadOnlyCollectionBase) |
| Item[Int32] |
获取用于遍历进程线程集的索引。Gets an index for iterating over the set of process threads. |
方法
显式接口实现
| ICollection.CopyTo(Array, Int32) |
将集合的元素复制到数组,从特定数组索引处开始复制。Copies the elements of the collection to an array, starting at a particular array index. |
| ICollection.CopyTo(Array, Int32) |
从目标数组的指定索引处开始将整个 ReadOnlyCollectionBase 复制到兼容的一维 Array。Copies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array. (继承自 ReadOnlyCollectionBase) |
| ICollection.IsSynchronized |
获取一个值,该值指示对集合的访问是否为同步的(线程安全)。Gets a value indicating whether access to the collection is synchronized (thread safe). |
| ICollection.IsSynchronized |
获取一个值,该值指示对 ReadOnlyCollectionBase 对象的访问是否同步(线程安全)。Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe). (继承自 ReadOnlyCollectionBase) |
| ICollection.SyncRoot |
获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection. |
| ICollection.SyncRoot |
获取一个对象,该对象可用于同步对 ReadOnlyCollectionBase 对象的访问。Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object. (继承自 ReadOnlyCollectionBase) |
扩展方法
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |