ScriptObject.GetProperty メソッド

定義

指定した名前のプロパティを取得します。

オーバーロード

GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

指定した選択基準を使用して、指定した名前のプロパティを取得します。

GetProperty(String, BindingFlags)

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

指定した名前のプロパティを取得します。

GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

指定した選択基準を使用して、指定した名前のプロパティを取得します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public:
 virtual System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.PropertyInfo GetProperty (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetProperty : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
override this.GetProperty : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, bindingAttr As BindingFlags, binder As Binder, returnType As Type, types As Type(), modifiers As ParameterModifier()) As PropertyInfo

パラメーター

name
String

検索するプロパティの名前。

bindingAttr
BindingFlags

リフレクションによってメンバーの検索を制御する方法を指定する列挙値のビットごとの組み合わせ。

binder
Binder

実引数の型から仮引数の型への型変換を実行するオブジェクト。

returnType
Type

プロパティに必要な戻り値の型。

types
Type[]

検索対象のプロパティのインデックス型。 クラスのインデクサーなど、インデックス プロパティに使用されます。

modifiers
ParameterModifier[]

バインディングが型の変更されたパラメーター シグネチャと連動できるようにするパラメーター修飾子の配列。

戻り値

指定した name のプロパティ。スクリプト オブジェクトにそのプロパティが含まれていない場合は null。

実装

こちらもご覧ください

適用対象

GetProperty(String, BindingFlags)

指定した名前のプロパティを取得します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public:
 virtual System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.PropertyInfo GetProperty (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
override this.GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, bindingAttr As BindingFlags) As PropertyInfo

パラメーター

name
String

取得するプロパティの名前。

bindingAttr
BindingFlags

リフレクションによってメンバーの検索を制御する方法を指定する列挙値のビットごとの組み合わせ。

戻り値

指定した name のプロパティ。スクリプト オブジェクトにそのプロパティが含まれていない場合は null。

実装

こちらもご覧ください

適用対象