TypeInfo.DeclaredConstructors Vlastnost

Definice

Získá kolekci konstruktorů deklarovaných aktuálním typem.

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

Hodnota vlastnosti

Kolekce konstruktorů deklarovaných aktuálním typem.

Poznámky

Pokud chcete filtrovat výsledky DeclaredConstructors vlastnosti, použijte dotazy LINQ. U objektů reflexe, které pocházejí z modulu runtime (například jako výsledek typeof(Object)), můžete procházet strom dědičnosti pomocí metod ve RuntimeReflectionExtensions třídě . Příjemci objektů z přizpůsobených kontextů reflexe nemohou tyto metody použít a musí procházet strom dědičnosti sami.

Platí pro