Defines a nested type given its name.
[Visual Basic] Overloads Public Function DefineNestedType( _ ByVal name As String _ ) As TypeBuilder [C#] public TypeBuilder DefineNestedType( string name ); [C++] public: TypeBuilder* DefineNestedType( String* name ); [JScript] public function DefineNestedType( name : String ) : TypeBuilder;
The defined nested type.
Exception Type | Condition |
---|---|
ArgumentNullException | if name is a null reference (in Visual Basic Nothing) or a null interface is specified in the interfaces array |
InvalidOperationException | if the type was previously created using CreateType |
TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace | TypeBuilder.DefineNestedType Overload List