TypeDelegator.GetPropertyImpl 方法

定義

在衍生類別中覆寫時,使用指定的繫結條件約束搜尋指定的屬性,而該屬性的參數符合指定的引數類型和修飾詞的建構函式。

protected:
 override System::Reflection::PropertyInfo ^ GetPropertyImpl(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
protected override System.Reflection.PropertyInfo? GetPropertyImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, Type? returnType, Type[]? types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.PropertyInfo GetPropertyImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
override this.GetPropertyImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Protected Overrides Function GetPropertyImpl (name As String, bindingAttr As BindingFlags, binder As Binder, returnType As Type, types As Type(), modifiers As ParameterModifier()) As PropertyInfo

參數

name
String

要取得的屬性。

bindingAttr
BindingFlags

位元遮罩,會影響搜尋的進行方式。 這個值是零或來自 BindingFlags 多個位元旗標的組合。

binder
Binder

使用反映來啟用繫結、強制引數的類型、成員的引動過程,和擷取 MemberInfo 物件的物件。 如果 bindernull,則會使用預設繫結器。 請參閱 Binder

returnType
Type

屬性的傳回類型。

types
Type[]

參數型別的清單。 表示參數數目、順序和型別的清單。 型別不能是 Null,請使用適當的 GetMethod 方法或空白陣列以搜尋沒有參數的方法。

modifiers
ParameterModifier[]

與具有元素型別相同長度的陣列,這些元素表示與要取得方法之參數相關的屬性。

傳回

屬性的 PropertyInfo 物件 (符合指定的準則),或為 Null (如果找不到符合的)。

適用於