TypeInfo.DeclaredConstructors Tulajdonság
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Lekéri az aktuális típus által deklarált konstruktorok gyűjteményét.
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)
Tulajdonság értéke
Az aktuális típus által deklarált konstruktorok gyűjteménye.
- Attribútumok
Megjegyzések
A tulajdonság eredményeinek DeclaredConstructors szűréséhez használjon LINQ-lekérdezéseket. A futtatókörnyezetből származó visszaverődési objektumok esetében (például ennek eredményeként typeof(Object)) az osztály metódusaival haladhat át az RuntimeReflectionExtensions öröklési fán. A testre szabott tükröződési környezetekből származó objektumok felhasználói nem használhatják ezeket a módszereket, és maguknak kell áthaladniuk az öröklési fán.