Freigeben über


RuntimeHelpers.RunClassConstructor-Methode

Führt eine angegebene Klassenkonstruktormethode aus.

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

Syntax

'Declaration
Public Shared Sub RunClassConstructor ( _
    type As RuntimeTypeHandle _
)
'Usage
Dim type As RuntimeTypeHandle

RuntimeHelpers.RunClassConstructor(type)
public static void RunClassConstructor (
    RuntimeTypeHandle type
)
public:
static void RunClassConstructor (
    RuntimeTypeHandle type
)
public static void RunClassConstructor (
    RuntimeTypeHandle type
)
public static function RunClassConstructor (
    type : RuntimeTypeHandle
)

Parameter

  • type
    Ein RuntimeTypeHandle, der die auszuführende Klassenkonstruktormethode angibt.

Ausnahmen

Ausnahmetyp Bedingung

TypeInitializationException

Die Klasseninitialisierung hat eine Ausnahme ausgelöst.

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

RuntimeHelpers-Klasse
RuntimeHelpers-Member
System.Runtime.CompilerServices-Namespace