TypeBuilder.DefineNestedTypeCore 方法

定义

在派生类中重写时,定义嵌套类型,给定其名称、属性、大小及其扩展的类型。

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

参数

name
String

类型的短名称。 name 不能包含嵌入 null 的值。

attr
TypeAttributes

枚举值的按位组合,指定类型的属性。

parent
Type

此嵌套类型扩展的类型。

interfaces
Type[]

此嵌套类型实现的接口。

packSize
PackingSize

此类型的封装大小。

typeSize
Int32

此类型的总大小。

返回

已定义的嵌套类型。

适用于