次の方法で共有


RuntimeHelpers.RunClassConstructor メソッド

指定したクラスのコンストラクタ メソッドを実行します。

Public Shared Sub RunClassConstructor( _
   ByVal type As RuntimeTypeHandle _)
[C#]
public static void RunClassConstructor(RuntimeTypeHandletype);
[C++]
public: static void RunClassConstructor(RuntimeTypeHandletype);
[JScript]
public static function RunClassConstructor(
   type : RuntimeTypeHandle);

パラメータ

  • type
    指定したクラスのコンストラクタ メソッドを指定する RuntimeTypeHandler

例外

例外の種類 条件
TypeInitializationException クラス初期化子が例外をスローしました。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, Common Language Infrastructure (CLI) Standard

参照

RuntimeHelpers クラス | RuntimeHelpers メンバ | System.Runtime.CompilerServices 名前空間