Sdílet prostřednictvím


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; }
public virtual System.Collections.Generic.IEnumerable<System.Reflection.ConstructorInfo> DeclaredConstructors { [System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)] get; }
member this.DeclaredConstructors : seq<System.Reflection.ConstructorInfo>
[<get: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicConstructors | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicConstructors)>]
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.

Atributy

Poznámky

K filtrování výsledků DeclaredConstructors vlastnosti použijte dotazy LINQ. Pro objekty 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žívat a musí procházet strom dědičnosti sám.

Platí pro