ProcessModuleCollection ProcessModuleCollection ProcessModuleCollection ProcessModuleCollection Class

定义

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

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

注解

模块是可执行文件或动态链接库 (DLL)。A module is an executable file or a dynamic link library (DLL). 每个进程都由一个或多个模块组成。Each process consists of one or more modules. 您可以使用此类来循环访问系统上的进程模块的集合。You can use this class to iterate over a collection of process modules on the system. 模块由其模块名称和完全限定的文件路径标识。A module is identified by its module name and fully qualified file path.

构造函数

ProcessModuleCollection() ProcessModuleCollection() ProcessModuleCollection() ProcessModuleCollection()

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

ProcessModuleCollection(ProcessModule[]) ProcessModuleCollection(ProcessModule[]) ProcessModuleCollection(ProcessModule[]) ProcessModuleCollection(ProcessModule[])

使用指定的 ProcessModuleCollection 实例数组来初始化 ProcessModule 类的新实例。Initializes a new instance of the ProcessModuleCollection class, using the specified array of ProcessModule 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 modules.

方法

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

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

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

ProcessModule 实例的数组复制到集合的指定索引处。Copies an array of ProcessModule 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<ProcessModule>) Exists(Predicate<ProcessModule>) Exists(Predicate<ProcessModule>) Exists(Predicate<ProcessModule>)
Find(Predicate<ProcessModule>) Find(Predicate<ProcessModule>) Find(Predicate<ProcessModule>) Find(Predicate<ProcessModule>)
FindAll(Predicate<ProcessModule>) FindAll(Predicate<ProcessModule>) FindAll(Predicate<ProcessModule>) FindAll(Predicate<ProcessModule>)
FindIndex(Int32, Int32, Predicate<ProcessModule>) FindIndex(Int32, Int32, Predicate<ProcessModule>) FindIndex(Int32, Int32, Predicate<ProcessModule>) FindIndex(Int32, Int32, Predicate<ProcessModule>)
FindIndex(Int32, Predicate<ProcessModule>) FindIndex(Int32, Predicate<ProcessModule>) FindIndex(Int32, Predicate<ProcessModule>) FindIndex(Int32, Predicate<ProcessModule>)
FindIndex(Predicate<ProcessModule>) FindIndex(Predicate<ProcessModule>) FindIndex(Predicate<ProcessModule>) FindIndex(Predicate<ProcessModule>)
FindLast(Predicate<ProcessModule>) FindLast(Predicate<ProcessModule>) FindLast(Predicate<ProcessModule>) FindLast(Predicate<ProcessModule>)
FindLastIndex(Int32, Int32, Predicate<ProcessModule>) FindLastIndex(Int32, Int32, Predicate<ProcessModule>) FindLastIndex(Int32, Int32, Predicate<ProcessModule>) FindLastIndex(Int32, Int32, Predicate<ProcessModule>)
FindLastIndex(Int32, Predicate<ProcessModule>) FindLastIndex(Int32, Predicate<ProcessModule>) FindLastIndex(Int32, Predicate<ProcessModule>) FindLastIndex(Int32, Predicate<ProcessModule>)
FindLastIndex(Predicate<ProcessModule>) FindLastIndex(Predicate<ProcessModule>) FindLastIndex(Predicate<ProcessModule>) FindLastIndex(Predicate<ProcessModule>)
ForEach(Action<ProcessModule>) ForEach(Action<ProcessModule>) ForEach(Action<ProcessModule>) ForEach(Action<ProcessModule>)
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(ProcessModule) IndexOf(ProcessModule) IndexOf(ProcessModule) IndexOf(ProcessModule)

提供指定模块在集合中的位置。Provides the location of a specified module within the collection.

IndexOf(ProcessModule, Int32) IndexOf(ProcessModule, Int32) IndexOf(ProcessModule, Int32) IndexOf(ProcessModule, Int32)
IndexOf(ProcessModule, Int32, Int32) IndexOf(ProcessModule, Int32, Int32) IndexOf(ProcessModule, Int32, Int32) IndexOf(ProcessModule, Int32, Int32)
Insert(Int32, ProcessModule) Insert(Int32, ProcessModule) Insert(Int32, ProcessModule) Insert(Int32, ProcessModule)
InsertRange(Int32, IEnumerable<ProcessModule>) InsertRange(Int32, IEnumerable<ProcessModule>) InsertRange(Int32, IEnumerable<ProcessModule>) InsertRange(Int32, IEnumerable<ProcessModule>)
LastIndexOf(ProcessModule) LastIndexOf(ProcessModule) LastIndexOf(ProcessModule) LastIndexOf(ProcessModule)
LastIndexOf(ProcessModule, Int32) LastIndexOf(ProcessModule, Int32) LastIndexOf(ProcessModule, Int32) LastIndexOf(ProcessModule, Int32)
LastIndexOf(ProcessModule, Int32, Int32) LastIndexOf(ProcessModule, Int32, Int32) LastIndexOf(ProcessModule, Int32, Int32) LastIndexOf(ProcessModule, Int32, Int32)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
Remove(ProcessModule) Remove(ProcessModule) Remove(ProcessModule) Remove(ProcessModule)
RemoveAll(Predicate<ProcessModule>) RemoveAll(Predicate<ProcessModule>) RemoveAll(Predicate<ProcessModule>) RemoveAll(Predicate<ProcessModule>)
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<ProcessModule>) Sort(Comparison<ProcessModule>) Sort(Comparison<ProcessModule>) Sort(Comparison<ProcessModule>)
Sort(IComparer<ProcessModule>) Sort(IComparer<ProcessModule>) Sort(IComparer<ProcessModule>) Sort(IComparer<ProcessModule>)
Sort(Int32, Int32, IComparer<ProcessModule>) Sort(Int32, Int32, IComparer<ProcessModule>) Sort(Int32, Int32, IComparer<ProcessModule>) Sort(Int32, Int32, IComparer<ProcessModule>)
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<ProcessModule>) TrueForAll(Predicate<ProcessModule>) TrueForAll(Predicate<ProcessModule>) TrueForAll(Predicate<ProcessModule>)

显式界面实现

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.

适用于

另请参阅