System.Diagnostics.ProcessModuleCollection.Contains Method

Determines whether the specified process module exists in the collection.

Syntax

public bool Contains (ProcessModule module)

Parameters

module
A System.Diagnostics.ProcessModule instance that indicates the module to find in this collection.

Returns

true if the module exists in the collection; otherwise, false.

Remarks

A module is identified by its module name and its fully qualified file path.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0