Assembly.DefinedTypes Assembly.DefinedTypes Assembly.DefinedTypes Assembly.DefinedTypes Property

定义

获取定义在此程序集中的类型的集合。Gets a collection of the types defined in this assembly.

public:
 virtual property System::Collections::Generic::IEnumerable<System::Reflection::TypeInfo ^> ^ DefinedTypes { System::Collections::Generic::IEnumerable<System::Reflection::TypeInfo ^> ^ get(); };
public virtual System.Collections.Generic.IEnumerable<System.Reflection.TypeInfo> DefinedTypes { get; }
member this.DefinedTypes : seq<System.Reflection.TypeInfo>
Public Overridable ReadOnly Property DefinedTypes As IEnumerable(Of TypeInfo)

属性值

定义在此程序集中的类型的集合。A collection of the types defined in this assembly.

注解

TypeInfo Type属性相当Assembly.GetTypes于方法,Assembly.GetTypes只不过属性返回对象的集合,并且方法返回对象的数组。 DefinedTypes DefinedTypesThe DefinedTypes property is comparable to the Assembly.GetTypes method, except that the DefinedTypes property returns a collection of TypeInfo objects, and the Assembly.GetTypes method returns an array of Type objects.

返回的数组包括嵌套类型。The returned array includes nested types.

适用于

另请参阅