Aracılığıyla paylaş


TypeInfo.DeclaredConstructors Özellik

Tanım

Geçerli tür tarafından bildirilen oluşturucuların koleksiyonunu alır.

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)

Özellik Değeri

Geçerli tür tarafından bildirilen oluşturucuların koleksiyonu.

Öznitelikler

Açıklamalar

Özelliğin sonuçlarını filtrelemek DeclaredConstructors için LINQ sorgularını kullanın. Çalışma zamanından kaynaklanan yansıma nesneleri için (örneğin, sonucu typeof(Object)olarak), sınıftaki yöntemleri kullanarak devralma ağacını RuntimeReflectionExtensions geçirebilirsiniz. Özelleştirilmiş yansıma bağlamlarından nesne tüketicileri bu yöntemleri kullanamaz ve devralma ağacının kendileri arasında geçiş yapmalıdır.

Şunlara uygulanır