TypeBuilder.DefineNestedTypeCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, defines a nested type, given its name, attributes, size, and the type that it extends.
protected:
abstract System::Reflection::Emit::TypeBuilder ^ DefineNestedTypeCore(System::String ^ name, System::Reflection::TypeAttributes attr, Type ^ parent, cli::array <Type ^> ^ interfaces, System::Reflection::Emit::PackingSize packSize, int typeSize);
protected abstract System.Reflection.Emit.TypeBuilder DefineNestedTypeCore (string name, System.Reflection.TypeAttributes attr, Type? parent, Type[]? interfaces, System.Reflection.Emit.PackingSize packSize, int typeSize);
abstract member DefineNestedTypeCore : string * System.Reflection.TypeAttributes * Type * Type[] * System.Reflection.Emit.PackingSize * int -> System.Reflection.Emit.TypeBuilder
Protected MustOverride Function DefineNestedTypeCore (name As String, attr As TypeAttributes, parent As Type, interfaces As Type(), packSize As PackingSize, typeSize As Integer) As TypeBuilder
Parameters
- name
- String
The short name of the type. name
cannot contain embedded null
values.
- attr
- TypeAttributes
A bitwise combination of the enumeration values that specifies the attributes of the type.
- parent
- Type
The type that the nested type extends.
- interfaces
- Type[]
The interfaces that the nested type implements.
- packSize
- PackingSize
The packing size of the type.
- typeSize
- Int32
The total size of the type.
Returns
The defined nested type.