TypeDelegator.GetPropertyImpl(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) 方法

定义

当在派生类中重写时,使用指定的绑定约束搜索其参数与指定的参数类型和修饰符匹配的指定属性。When overridden in a derived class, searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.

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);
override this.GetPropertyImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo

参数

name
String

要获取的属性。The property to get.

bindingAttr
BindingFlags

影响执行搜索的方式的位掩码。A bitmask that affects the way in which the search is conducted. 该值是零个或多个来自 BindingFlags 的位标志的组合。The value is a combination of zero or more bit flags from BindingFlags.

binder
Binder

一个对象,它启用绑定、对参数类型的强制、对成员的调用,以及通过反射对 MemberInfo 对象的检索。An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects via reflection. 如果 bindernull,则使用默认联编程序。If binder is null, the default binder is used. 请参阅 BinderSee Binder.

returnType
Type

属性的返回类型。The return type of the property.

types
Type[]

参数类型的列表。A list of parameter types. 此列表表示参数的数目、顺序和类型。The list represents the number, order, and types of the parameters. 类型不能为 null;使用相应的 GetMethod 方法或空数组搜索不带参数的方法。Types cannot be null; use an appropriate GetMethod method or an empty array to search for a method without parameters.

modifiers
ParameterModifier[]

长度与 types 相同的数组,其元素表示与要获取的方法参数关联的属性。An array of the same length as types with elements that represent the attributes associated with the parameters of the method to get.

返回

此属性的匹配指定条件的 PropertyInfo 对象;如果无法找到匹配,则为 null。A PropertyInfo object for the property that matches the specified criteria, or null if a match cannot be found.

适用于