Redigeeri

Jagamisviis:


TypeInfo.DeclaredConstructors Property

Definition

Gets a collection of the constructors declared by the current type.

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)

Property Value

A collection of the constructors declared by the current type.

Remarks

To filter the results of the DeclaredConstructors property, use LINQ queries. For reflection objects that originate with the runtime (for example, as the result of typeof(Object)), you can traverse the inheritance tree by using the methods in the RuntimeReflectionExtensions class. Consumers of objects from customized reflection contexts cannot use these methods and must traverse the inheritance tree themselves.

Applies to