TypeInfo.DeclaredConstructors 屬性

定義

取得目前類型所宣告之建構函式的集合。

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)

屬性值

IEnumerable<ConstructorInfo>

目前類型所宣告之建構函式的集合。

備註

若要篩選屬性的結果 DeclaredConstructors ,請使用 LINQ 查詢。 例如,針對源自執行時間的反映物件 (,例如,因為) 的結果 typeof(Object) ,您可以使用 類別中的 RuntimeReflectionExtensions 方法周遊繼承樹狀結構。 自訂反映內容的取用者無法使用這些方法,而且必須周遊繼承樹狀結構本身。

適用於