ProcessThreadCollection ProcessThreadCollection ProcessThreadCollection ProcessThreadCollection Class

定义

提供 ProcessThread 对象的强类型集合。Provides a strongly typed collection of ProcessThread objects.

public ref class ProcessThreadCollection : System::Collections::ReadOnlyCollectionBase
public class ProcessThreadCollection : System.Collections.ReadOnlyCollectionBase
type ProcessThreadCollection = class
    inherit ReadOnlyCollectionBase
Public Class ProcessThreadCollection
Inherits ReadOnlyCollectionBase
继承
ProcessThreadCollectionProcessThreadCollectionProcessThreadCollectionProcessThreadCollection

构造函数

ProcessThreadCollection() ProcessThreadCollection() ProcessThreadCollection() ProcessThreadCollection()

在没有关联的 ProcessThreadCollection 实例的情况下,初始化 ProcessThread 类的新实例。Initializes a new instance of the ProcessThreadCollection class, with no associated ProcessThread instances.

ProcessThreadCollection(ProcessThread[]) ProcessThreadCollection(ProcessThread[]) ProcessThreadCollection(ProcessThread[]) ProcessThreadCollection(ProcessThread[])

使用指定的 ProcessThreadCollection 实例数组来初始化 ProcessThread 类的新实例。Initializes a new instance of the ProcessThreadCollection class, using the specified array of ProcessThread instances.

属性

Capacity Capacity Capacity Capacity
Count Count Count Count
InnerList InnerList InnerList InnerList

获取包含在 ReadOnlyCollectionBase 实例中的元素的列表。Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取用于循环访问进程线程集的索引。Gets an index for iterating over the set of process threads.

方法

Add(ProcessThread) Add(ProcessThread) Add(ProcessThread) Add(ProcessThread)

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

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

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

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

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
Exists(Predicate<ProcessThread>) Exists(Predicate<ProcessThread>) Exists(Predicate<ProcessThread>) Exists(Predicate<ProcessThread>)
Find(Predicate<ProcessThread>) Find(Predicate<ProcessThread>) Find(Predicate<ProcessThread>) Find(Predicate<ProcessThread>)
FindAll(Predicate<ProcessThread>) FindAll(Predicate<ProcessThread>) FindAll(Predicate<ProcessThread>) FindAll(Predicate<ProcessThread>)
FindIndex(Int32, Int32, Predicate<ProcessThread>) FindIndex(Int32, Int32, Predicate<ProcessThread>) FindIndex(Int32, Int32, Predicate<ProcessThread>) FindIndex(Int32, Int32, Predicate<ProcessThread>)
FindIndex(Int32, Predicate<ProcessThread>) FindIndex(Int32, Predicate<ProcessThread>) FindIndex(Int32, Predicate<ProcessThread>) FindIndex(Int32, Predicate<ProcessThread>)
FindIndex(Predicate<ProcessThread>) FindIndex(Predicate<ProcessThread>) FindIndex(Predicate<ProcessThread>) FindIndex(Predicate<ProcessThread>)
FindLast(Predicate<ProcessThread>) FindLast(Predicate<ProcessThread>) FindLast(Predicate<ProcessThread>) FindLast(Predicate<ProcessThread>)
FindLastIndex(Int32, Int32, Predicate<ProcessThread>) FindLastIndex(Int32, Int32, Predicate<ProcessThread>) FindLastIndex(Int32, Int32, Predicate<ProcessThread>) FindLastIndex(Int32, Int32, Predicate<ProcessThread>)
FindLastIndex(Int32, Predicate<ProcessThread>) FindLastIndex(Int32, Predicate<ProcessThread>) FindLastIndex(Int32, Predicate<ProcessThread>) FindLastIndex(Int32, Predicate<ProcessThread>)
FindLastIndex(Predicate<ProcessThread>) FindLastIndex(Predicate<ProcessThread>) FindLastIndex(Predicate<ProcessThread>) FindLastIndex(Predicate<ProcessThread>)
ForEach(Action<ProcessThread>) ForEach(Action<ProcessThread>) ForEach(Action<ProcessThread>) ForEach(Action<ProcessThread>)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetRange(Int32, Int32) GetRange(Int32, Int32) GetRange(Int32, Int32) GetRange(Int32, Int32)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
IndexOf(ProcessThread) IndexOf(ProcessThread) IndexOf(ProcessThread) IndexOf(ProcessThread)

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

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

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

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

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

(Inherited from Object)
Remove(ProcessThread) Remove(ProcessThread) Remove(ProcessThread) Remove(ProcessThread)

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

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

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

(Inherited from Object)
TrimExcess() TrimExcess() TrimExcess() TrimExcess()
TrueForAll(Predicate<ProcessThread>) TrueForAll(Predicate<ProcessThread>) TrueForAll(Predicate<ProcessThread>) TrueForAll(Predicate<ProcessThread>)

显式界面实现

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)
ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于