Constructs a TypeBuilder for a type with the specified name.
[Visual Basic] Overloads Public Function DefineType( _ ByVal name As String _ ) As TypeBuilder [C#] public TypeBuilder DefineType( string name ); [C++] public: TypeBuilder* DefineType( String* name ); [JScript] public function DefineType( name : String ) : TypeBuilder;
Returns the created TypeBuilder.
Exception Type | Condition |
---|---|
ArgumentException | if name is null. |
NGWS Runtime Security:
ReflectionPermission | SecurityAction.Demand, ReflectionEmit |
ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace | ModuleBuilder.DefineType Overload List