IReflectGetProperty Method (String, BindingFlags, Binder, Type, Type, ParameterModifier) |
Retrieves a
PropertyInfo object that corresponds to a specified property with specified search constraints.
Namespace: System.ReflectionAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax PropertyInfo GetProperty(
string name,
BindingFlags bindingAttr,
Binder binder,
Type returnType,
Type[] types,
ParameterModifier[] modifiers
)
Parameters
- name
- Type: SystemString
The name of the member to find. - bindingAttr
- Type: System.ReflectionBindingFlags
The binding attribute used to control the search. - binder
- Type: System.ReflectionBinder
An object that implements Binder, containing properties related to this method. - returnType
- Type: SystemType
The type of the property. - types
- Type: SystemType
An array used to choose among overloaded methods with the same name. - modifiers
- Type: System.ReflectionParameterModifier
An array used to choose the parameter modifiers.
Return Value
Type:
PropertyInfoA
PropertyInfo object for the located property, if a property with the specified name was located in this reflection object, or null if the property was not located.
See Also