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
实现

构造函数

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.

方法

Add(ProcessThread)

将进程线程追加到集合。Appends a process thread to the collection.

AddRange(IEnumerable<ProcessThread>)
AsReadOnly()
BinarySearch(Int32, Int32, ProcessThread, IComparer<ProcessThread>)
BinarySearch(ProcessThread)
BinarySearch(ProcessThread, IComparer<ProcessThread>)
Clear()
Contains(ProcessThread)

确定指定进程线程是否存在于集合中。Determines whether the specified process thread exists in the collection.

ConvertAll<TOutput>(Converter<ProcessThread,TOutput>)
CopyTo(Int32, ProcessThread[], Int32, Int32)
CopyTo(ProcessThread[])
CopyTo(ProcessThread[], Int32)

ProcessThread 实例数组复制到集合中的指定索引处。Copies an array of ProcessThread instances to the collection, at the specified index.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Exists(Predicate<ProcessThread>)
Find(Predicate<ProcessThread>)
FindAll(Predicate<ProcessThread>)
FindIndex(Int32, Int32, Predicate<ProcessThread>)
FindIndex(Int32, Predicate<ProcessThread>)
FindIndex(Predicate<ProcessThread>)
FindLast(Predicate<ProcessThread>)
FindLastIndex(Int32, Int32, Predicate<ProcessThread>)
FindLastIndex(Int32, Predicate<ProcessThread>)
FindLastIndex(Predicate<ProcessThread>)
ForEach(Action<ProcessThread>)
GetEnumerator()

返回循环访问集合的枚举数。Returns an enumerator that iterates through a collection.

GetEnumerator()

返回循环访问 ReadOnlyCollectionBase 实例的枚举器。Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.

(继承自 ReadOnlyCollectionBase)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetRange(Int32, Int32)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IndexOf(ProcessThread)

提供指定线程在集合中的位置。Provides the location of a specified thread within the collection.

IndexOf(ProcessThread, Int32)
IndexOf(ProcessThread, Int32, Int32)
Insert(Int32, ProcessThread)

在集合中的指定位置插入进程线程。Inserts a process thread at the specified location in the collection.

InsertRange(Int32, IEnumerable<ProcessThread>)
LastIndexOf(ProcessThread)
LastIndexOf(ProcessThread, Int32)
LastIndexOf(ProcessThread, Int32, Int32)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(ProcessThread)

从集合中删除进程线程。Deletes a process thread from the collection.

RemoveAll(Predicate<ProcessThread>)
RemoveAt(Int32)
RemoveRange(Int32, Int32)
Reverse()
Reverse(Int32, Int32)
Sort()
Sort(Comparison<ProcessThread>)
Sort(IComparer<ProcessThread>)
Sort(Int32, Int32, IComparer<ProcessThread>)
ToArray()
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
TrimExcess()
TrueForAll(Predicate<ProcessThread>)

显式接口实现

ICollection.CopyTo(Array, Int32)

将集合的元素复制到数组,从特定数组索引处开始复制。Copies the elements of the collection to an array, starting at a particular array index.

ICollection.CopyTo(Array, Int32)

从目标数组的指定索引处开始将整个 ReadOnlyCollectionBase 复制到兼容的一维 ArrayCopies 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 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于