Condividi tramite


TypeInfo.DeclaredConstructors Proprietà

Definizione

Ottiene una raccolta dei costruttori dichiarati dal tipo corrente.

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)

Valore della proprietà

Raccolta dei costruttori dichiarati dal tipo corrente.

Attributi

Commenti

Per filtrare i risultati della DeclaredConstructors proprietà, usare query LINQ. Per gli oggetti reflection che hanno origine con il runtime ( ad esempio, come risultato di ), è possibile attraversare l'albero di typeof(Object)ereditarietà usando i metodi nella RuntimeReflectionExtensions classe . I consumer di oggetti da contesti di reflection personalizzati non possono usare questi metodi e devono attraversare l'albero di ereditarietà stesso.

Si applica a