RuntimeHelpers.RunModuleConstructor Method (ModuleHandle)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition
TypeInitializationException

The module constructor throws an exception.

This method is used by compilers.

.NET Framework
Available since 2.0
Return to top
Show: