ModuleBuilder.DefineTypeCore 方法

定义

在派生类中重写时,构造 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

参数

name
String

类型的完整路径。 name 不能包含嵌入的 null。

attr
TypeAttributes

已定义类型的属性。

parent
Type

已定义类型扩展的类型。

interfaces
Type[]

类型实现的接口列表。

packingSize
PackingSize

此类型的封装大小。

typesize
Int32

此类型的总大小。

返回

用所有请求的特性创建的 TypeBuilder

适用于