Export (0) Print
Expand All

RuntimeHelpers.RunClassConstructor Method

Runs a specified class constructor method.

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

public static void RunClassConstructor(
	RuntimeTypeHandle type
)

Parameters

type
Type: System.RuntimeTypeHandle

A type handle that specifies the class constructor method to run.

ExceptionCondition
TypeInitializationException

The class initializer throws an exception.

This method is used by compilers.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft