Udostępnij przez


RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle) Metoda

Definicja

Gwarantuje, że inicjator typu (znany również jako konstruktor statyczny) dla określonego typu został uruchomiony.

public:
 static void RunClassConstructor(RuntimeTypeHandle type);
public static void RunClassConstructor (RuntimeTypeHandle type);
static member RunClassConstructor : RuntimeTypeHandle -> unit
Public Shared Sub RunClassConstructor (type As RuntimeTypeHandle)

Parametry

type
RuntimeTypeHandle

Uchwyt typu określający typ, dla którego należy uruchomić inicjator typu.

Wyjątki

Inicjator typu zgłasza wyjątek.

Uwagi

Ta metoda jest używana przez kompilatory.

Dotyczy