Edit

Share via


ProcessModuleCollection Class

Definition

Provides a strongly typed collection of ProcessModule objects.

public ref class ProcessModuleCollection : System::Collections::ReadOnlyCollectionBase
public ref class ProcessModuleCollection : System::Collections::ICollection
public class ProcessModuleCollection : System.Collections.ReadOnlyCollectionBase
public class ProcessModuleCollection : System.Collections.ICollection
type ProcessModuleCollection = class
    inherit ReadOnlyCollectionBase
type ProcessModuleCollection = class
    interface ICollection
    interface IEnumerable
Public Class ProcessModuleCollection
Inherits ReadOnlyCollectionBase
Public Class ProcessModuleCollection
Implements ICollection
Inheritance
ProcessModuleCollection
Inheritance
ProcessModuleCollection
Implements

Remarks

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.

Constructors

ProcessModuleCollection()

Initializes a new instance of the ProcessModuleCollection class, with no associated ProcessModule instances.

ProcessModuleCollection(ProcessModule[])

Initializes a new instance of the ProcessModuleCollection class, using the specified array of ProcessModule instances.

Properties

Count

Gets the number of elements contained in the collection.

Count

Gets the number of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
InnerList

Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
Item[Int32]

Gets an index for iterating over the set of process modules.

Methods

Contains(ProcessModule)

Determines whether the specified process module exists in the collection.

CopyTo(ProcessModule[], Int32)

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.

(Inherited from Object)
GetEnumerator()

Returns an enumerator that iterates through a collection.

GetEnumerator()

Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.

(Inherited from ReadOnlyCollectionBase)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(ProcessModule)

Provides the location of a specified module within the collection.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

Copies the elements of the collection to an array, starting at a particular array index.

ICollection.CopyTo(Array, Int32)

Copies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(Inherited from ReadOnlyCollectionBase)
ICollection.IsSynchronized

Gets a value indicating whether access to the collection is synchronized (thread safe).

ICollection.IsSynchronized

Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe).

(Inherited from ReadOnlyCollectionBase)
ICollection.SyncRoot

Gets an object that can be used to synchronize access to the collection.

ICollection.SyncRoot

Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object.

(Inherited from ReadOnlyCollectionBase)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also