次の方法で共有


TypeBuilder.GetProperties メソッド (BindingFlags)

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

Overrides Overloads Public Function GetProperties( _
   ByVal bindingAttr As BindingFlags _) As PropertyInfo() Implements IReflect.GetProperties
[C#]
public override PropertyInfo[] GetProperties(BindingFlagsbindingAttr);
[C++]
public: PropertyInfo* GetProperties(BindingFlagsbindingAttr) [];
[JScript]
public override function GetProperties(
   bindingAttr : BindingFlags) : PropertyInfo[];

パラメータ

  • bindingAttr
    この呼び出し属性。 InvokeMethodNonPublic などの BindingFlags のビット フラグにする必要があります。

戻り値

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

実装

IReflect.GetProperties

例外

例外の種類 条件
NotSupportedException このメソッドは、不完全な型に対しては実装されません。

解説

GetType または GetType を使用して型を取得し、取得した型に対してリフレクションを使用します。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

TypeBuilder クラス | TypeBuilder メンバ | System.Reflection.Emit 名前空間 | TypeBuilder.GetProperties オーバーロードの一覧