Muokkaa

Jaa


RuntimeHelpers.RunModuleConstructor(ModuleHandle) Method

Definition

Ensures a specified module constructor method has run by the time this method returns.

public:
 static void RunModuleConstructor(ModuleHandle module);
public static void RunModuleConstructor (ModuleHandle module);
static member RunModuleConstructor : ModuleHandle -> unit
Public Shared Sub RunModuleConstructor (module As ModuleHandle)

Parameters

module
ModuleHandle

A handle that specifies the module constructor method to run.

Exceptions

The module constructor throws an exception.

Remarks

This method is used by compilers.

The module constructor will not be run more than once, even if this method is called multiple times.

Applies to