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

Capacity
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

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)

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)
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()

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)
GetRange(Int32, Int32)
GetType()

Gets the Type of the current instance.

(Inherited from 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()

Creates a shallow copy of the current Object.

(Inherited from 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()

Returns a string that represents the current object.

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

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