次の方法で共有


TypeBuilder.SetParent メソッド

この型の親を設定します。

Public Sub SetParent( _
   ByVal parent As Type _)
[C#]
public void SetParent(Typeparent);
[C++]
public: void SetParent(Type* parent);
[JScript]
public function SetParent(
   parent : Type);

パラメータ

  • parent
    親の型。

例外

例外の種類 条件
ArgumentNullException parent が null 参照 (Visual Basic では Nothing) です。
InvalidOperationException この型は、 CreateType を使用して既に作成されています。

必要条件

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

参照

TypeBuilder クラス | TypeBuilder メンバ | System.Reflection.Emit 名前空間