EnumBuilder.GetProperties(BindingFlags) メソッド

定義

指定されたとおりに、この型によって宣言または継承されたすべてのパブリック プロパティと非パブリック プロパティを返します。

public:
 override cli::array <System::Reflection::PropertyInfo ^> ^ GetProperties(System::Reflection::BindingFlags bindingAttr);
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)]
public override System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFlags bindingAttr);
public override System.Reflection.PropertyInfo[] GetProperties(System.Reflection.BindingFlags bindingAttr);
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)>]
override this.GetProperties : System.Reflection.BindingFlags -> System.Reflection.PropertyInfo[]
override this.GetProperties : System.Reflection.BindingFlags -> System.Reflection.PropertyInfo[]
Public Overrides Function GetProperties (bindingAttr As BindingFlags) As PropertyInfo()

パラメーター

bindingAttr
BindingFlags

この呼び出し属性。 これは、BindingFlagsInvokeMethodなど、NonPublicからのビット フラグである必要があります。

返品

PropertyInfoが使用されている場合は、この型で定義されているパブリック プロパティと非パブリック プロパティを表すnonPublic オブジェクトの配列を返します。それ以外の場合は、パブリック プロパティのみが返されます。

属性

例外

このメソッドは、現在、完全ではない型ではサポートされていません。

注釈

回避策として、完成した型のプロパティを取得するには、 Type.GetType または Assembly.GetType を使用して型を取得し、取得した型にリフレクションを使用します。

適用対象