ReflectionTypeLoadException.Types Property

Definition

获取模块中定义并加载的类的数组。Gets the array of classes that were defined in the module and loaded.

public:
 property cli::array <Type ^> ^ Types { cli::array <Type ^> ^ get(); };
public Type[] Types { get; }
member this.Types : Type[]
Public ReadOnly Property Types As Type()

Property Value

Type[]

Type 类型的数组,其中包含在模块中定义并加载的类。An array of type Type containing the classes that were defined in the module and loaded. 该数组可以包含一些 null 值。This array can contain some null values.

Remarks

LoaderExceptions 属性检索与此 Types 数组并行 Exception 类型的数组。The LoaderExceptions property retrieves an array of type Exception that is parallel to this Types array. 当反射无法加载类时,此数组将包含 null 值。This array will contain null values whenever reflection cannot load a class.

Applies to