TypeInfo.DeclaredNestedTypes Propriedade

Definição

Obtém uma coleção dos tipos aninhados definidos pelo tipo atual.Gets a collection of the nested types defined by the current type.

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

Valor da propriedade

IEnumerable<TypeInfo>

Uma coleção de tipos aninhados definidos pelo tipo atual.A collection of nested types defined by the current type.

Comentários

Para filtrar os resultados da DeclaredNestedTypes propriedade, use consultas LINQ.To filter the results of the DeclaredNestedTypes property, use LINQ queries. Para objetos de reflexão originados com o tempo de execução (por exemplo, como resultado de typeof(Object) ), você pode percorrer a árvore de herança usando os métodos na RuntimeReflectionExtensions classe.For reflection objects that originate with the runtime (for example, as the result of typeof(Object)), you can traverse the inheritance tree by using the methods in the RuntimeReflectionExtensions class. Os consumidores de objetos de contextos de reflexão personalizados não podem usar esses métodos e devem atravessar a própria árvore de herança.Consumers of objects from customized reflection contexts cannot use these methods and must traverse the inheritance tree themselves.

Aplica-se a