TypeInfo.DeclaredNestedTypes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Property Value
A collection of nested types defined by the current type.
Remarks
To filter the results of the DeclaredNestedTypes property, use LINQ queries. 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. Consumers of objects from customized reflection contexts cannot use these methods and must traverse the inheritance tree themselves.
Applies to
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за