NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeBuilder.SetParent

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
);

Parameters

parent
The parent Type.

Exceptions

Exception Type Condition
ArgumentNullException if parent is a null reference (in Visual Basic Nothing)
InvalidOperationException if the type was previously created using CreateType

See Also

TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace