Gets the modules that have been loaded by the associated process.
[Visual Basic] Public ReadOnly Property Modules As ProcessModule () [C#] public ProcessModule[] Modules {get;} [C++] public: __property ProcessModule* get_Modules(); [JScript] public function get Modules() : ProcessModule[];
An array of type ProcessModule that indicates the modules that have been loaded by the associated process.
Exception Type | Condition |
---|---|
SystemException | You are attempting to access the Modules on a remote computer. The property is only available for processes running on the local computer.
-or- The process Id is not available. |
A process module represents a .dll or .exe loaded into a particular process. A ProcessModule instance lets you view information about a module, including module and file name, and module memory details.
A process can load multiple modules into memory.
Process Class | Process Members | System.Diagnostics Namespace | ProcessModule