次の方法で共有


ModuleBuilder.GetType メソッド (String)

このモジュールで定義されている名前付きの型を取得します。

Overrides Overloads Public Function GetType( _
   ByVal className As String _) As Type
[C#]
public override Type GetType(stringclassName);
[C++]
public: Type* GetType(String* className);
[JScript]
public override function GetType(
   className : String) : Type;

パラメータ

  • className
    取得する Type の名前。

戻り値

要求された型。型が見つからない場合は null 参照 (Visual Basic では Nothing) を返します。

例外

例外の種類 条件
ArgumentException className の長さが 0 か、 className の長さが 1,023 を超える値です。
ArgumentNullException className が null 参照 (Visual Basic では Nothing) です。
SecurityException 要求された Type がパブリックではなく、呼び出し元には、現在のアセンブリ外の非パブリック オブジェクトをリフレクションするための ReflectionPermission がありません。
TargetInvocationException クラス初期化子が呼び出され、例外をスローしました。
TypeLoadException Type の読み込み中にエラーが発生しました。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

ModuleBuilder クラス | ModuleBuilder メンバ | System.Reflection.Emit 名前空間 | ModuleBuilder.GetType オーバーロードの一覧