TypeBuilder.DefineNestedTypeCore 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,定义嵌套类型,给定其名称、属性、大小及其扩展的类型。
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
此类型的总大小。
返回
已定义的嵌套类型。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈