ModuleBuilder.DefineTypeCore Method

Definition

When overridden in a derived class, constructs a TypeBuilder.

protected:
 abstract System::Reflection::Emit::TypeBuilder ^ DefineTypeCore(System::String ^ name, System::Reflection::TypeAttributes attr, Type ^ parent, cli::array <Type ^> ^ interfaces, System::Reflection::Emit::PackingSize packingSize, int typesize);
protected abstract System.Reflection.Emit.TypeBuilder DefineTypeCore (string name, System.Reflection.TypeAttributes attr, Type? parent, Type[]? interfaces, System.Reflection.Emit.PackingSize packingSize, int typesize);
abstract member DefineTypeCore : string * System.Reflection.TypeAttributes * Type * Type[] * System.Reflection.Emit.PackingSize * int -> System.Reflection.Emit.TypeBuilder
Protected MustOverride Function DefineTypeCore (name As String, attr As TypeAttributes, parent As Type, interfaces As Type(), packingSize As PackingSize, typesize As Integer) As TypeBuilder

Parameters

name
String

The full path of the type. name cannot contain embedded nulls.

attr
TypeAttributes

The attributes of the defined type.

parent
Type

The type that the defined type extends.

interfaces
Type[]

The list of interfaces that the type implements.

packingSize
PackingSize

The packing size of the type.

typesize
Int32

The total size of the type.

Returns

A TypeBuilder created with all of the requested attributes.

Applies to