Export (0) Print
Expand All

RuntimeHelpers.RunModuleConstructor Method

Runs a specified module constructor method.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public static void RunModuleConstructor(
	ModuleHandle module
)

Parameters

module
Type: System.ModuleHandle

A handle that specifies the module constructor method to run.

ExceptionCondition
TypeInitializationException

The module constructor throws an exception.

This method is used by compilers.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft