Type.GetPropertyImpl メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Type.GetPropertyImpl メソッドの意味・解説 

Type.GetPropertyImpl メソッド

派生クラスによってオーバーライドされるときに、指定バインディング制約使用して指定した引数の型および修飾子一致するパラメータ設定されプロパティ検索します

名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected MustOverride Function
 GetPropertyImpl ( _
    name As String, _
    bindingAttr As BindingFlags, _
    binder As Binder, _
    returnType As Type, _
    types As Type(), _
    modifiers As ParameterModifier() _
) As PropertyInfo
Dim name As String
Dim bindingAttr As BindingFlags
Dim binder As Binder
Dim returnType As Type
Dim types As Type()
Dim modifiers As ParameterModifier()
Dim returnValue As PropertyInfo

returnValue = Me.GetPropertyImpl(name, bindingAttr, binder, returnType,
 types, modifiers)
protected abstract PropertyInfo GetPropertyImpl (
    string name,
    BindingFlags bindingAttr,
    Binder binder,
    Type returnType,
    Type[] types,
    ParameterModifier[] modifiers
)
protected:
virtual PropertyInfo^ GetPropertyImpl (
    String^ name, 
    BindingFlags bindingAttr, 
    Binder^ binder, 
    Type^ returnType, 
    array<Type^>^ types, 
    array<ParameterModifier>^ modifiers
) abstract
protected abstract PropertyInfo GetPropertyImpl (
    String name, 
    BindingFlags bindingAttr, 
    Binder binder, 
    Type returnType, 
    Type[] types, 
    ParameterModifier[] modifiers
)
protected abstract function GetPropertyImpl
 (
    name : String, 
    bindingAttr : BindingFlags, 
    binder : Binder, 
    returnType : Type, 
    types : Type[], 
    modifiers : ParameterModifier[]
) : PropertyInfo

パラメータ

name

取得するプロパティの名前を格納している String

bindingAttr

検索実行方法指定する 1 つ上の BindingFlags から成るビット マスク

または

null 参照 (Visual Basic では Nothing) を返す 0。

binder

一連のプロパティ定義しバインディング有効にする Binder オブジェクトバインディングには、オーバーロードされたメンバ選択引数の型の強制変換リフレクションによるメンバ呼び出しなどが含まれます。

または

DefaultBinder を使用する場合null 参照 (Visual Basic では Nothing)。

returnType

プロパティ戻り値の型。

types

取得するインデックス付きプロパティ対すパラメータ数値順序、および型を表す Type オブジェクト配列

または

インデックス付けされていないプロパティ取得するための、Type 型の空の配列 (Type[] types = new Type[0])。

modifiers

types 配列内の対応する要素関連付けられている属性を表す ParameterModifier オブジェクト配列既定バインダは、このパラメータ処理しません。

戻り値
指定した要件一致するプロパティ存在する場合は、そのプロパティを表す PropertyInfo オブジェクトそれ以外場合null 参照 (Visual Basic では Nothing)。

例外例外
例外種類条件

AmbiguousMatchException

指定した名前を持ち指定したバインディング制約一致するプロパティ2 つ以上存在します

ArgumentNullException

namenull 参照 (Visual Basic では Nothing) です。

または

typesnull 参照 (Visual Basic では Nothing) です。

または

types1 つ要素null 参照 (Visual Basic では Nothing) です。

ArgumentException

types多次元です。

または

modifiers多次元です。

または

typesmodifiers長さ異なります

解説解説

既定バインダParameterModifier (modifiers パラメータ) を処理しませんが、System.Reflection.Binder 抽象クラス使用してmodifiers処理するカスタム バインダ記述できますParameterModifier は、COM 相互運用機能によって呼び出すときだけに使用され参照渡しされるパラメータだけが処理されます。

types 配列modifiers 配列長さが同じです。types 配列指定するパラメータには、modifiers 配列指定されている pdIn、pdOut、pdLcid、pdRetval、pdOptional、pdHasDefault の各属性設定できます。これらの属性は、それぞれ [In]、[Out]、[lcid]、[retval]、[optional]、およびパラメータ既定値を持つかどうか指定する値を表しますパラメータ関連付けられた属性メタデータ格納され相互運用性のために使用されます。

次の BindingFlags フィルタ フラグは、検索対象含めプロパティ定義するために使用できます

次の BindingFlags 修飾フラグは、検索方法変更するために使用できます

詳細については、「System.Reflection.BindingFlags」を参照してください

要求された型がパブリックではなく呼び出し元に現在のアセンブリ外の非パブリック オブジェクトリフレクションするための ReflectionPermission がない場合、このメソッドnull 参照 (Visual Basic では Nothing) を返します

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Type クラス
Type メンバ
System 名前空間
PropertyInfo
String クラス
BindingFlags
Binder
DefaultBinder
ParameterModifier
ReflectionPermission
GetProperty
GetProperties


このページでは「.NET Framework クラス ライブラリ リファレンス」からType.GetPropertyImpl メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からType.GetPropertyImpl メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からType.GetPropertyImpl メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

Type.GetPropertyImpl メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Type.GetPropertyImpl メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS