ProcessModuleCollection 类

定义

提供 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
继承
ProcessModuleCollection

注解

模块是可执行文件或动态链接库 (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 实例的情况下,初始化 ProcessModule 类的新实例。Initializes a new instance of the ProcessModuleCollection class, with no associated ProcessModule instances.

ProcessModuleCollection(ProcessModule[])

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

属性

Capacity
Count
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 modules.

方法

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

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

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

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

Equals(Object)

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

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

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

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

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

(继承自 Object)
IndexOf(ProcessModule)

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

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

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

(继承自 Object)
Remove(ProcessModule)
RemoveAll(Predicate<ProcessModule>)
RemoveAt(Int32)
RemoveRange(Int32, Int32)
Reverse()
Reverse(Int32, Int32)
Sort()
Sort(Comparison<ProcessModule>)
Sort(IComparer<ProcessModule>)
Sort(Int32, Int32, IComparer<ProcessModule>)
ToArray()
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

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

显式接口实现

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

扩展方法

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.

适用于

另请参阅