System.Diagnostics.Process.MainModule Property

Gets the main module for the associated process.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Diagnostics.MonitoringDescription("The main module of the process.")]
public ProcessModule MainModule { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A process module represents a.dll or .exe file that is loaded into a particular process. The Process.MainModule property lets you view information about the executable used to start the process, including the module name, file name, and module memory details.

Requirements

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