RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle) Metoda

Definice

Zajišťuje spuštění inicializátoru typu (označovaného také jako statický konstruktor) pro zadaný typ.

public:
 static void RunClassConstructor(RuntimeTypeHandle type);
public static void RunClassConstructor(RuntimeTypeHandle type);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Trimmer can't guarantee existence of class constructor")]
public static void RunClassConstructor(RuntimeTypeHandle type);
static member RunClassConstructor : RuntimeTypeHandle -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Trimmer can't guarantee existence of class constructor")>]
static member RunClassConstructor : RuntimeTypeHandle -> unit
Public Shared Sub RunClassConstructor (type As RuntimeTypeHandle)

Parametry

type
RuntimeTypeHandle

Popisovač typu, který určuje typ, pro který má být spuštěn inicializátor typu.

Atributy

Výjimky

Inicializátor typu vyvolá výjimku.

Poznámky

Tuto metodu používají kompilátory.

Platí pro