Sets the parent of this Type.
[Visual Basic] Public Sub SetParent( _ ByVal parent As Type _ ) [C#] public void SetParent( Type parent ); [C++] public: void SetParent( Type* parent ); [JScript] public function SetParent( parent : Type );
Exception Type | Condition |
---|---|
ArgumentNullException | if parent is a null reference (in Visual Basic Nothing) |
InvalidOperationException | if the type was previously created using CreateType |
TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace