System.Reflection.IReflect.GetProperty Method

Retrieves a System.Reflection.PropertyInfo object that corresponds to a specified property with specified search constraints.

Syntax

public PropertyInfo GetProperty (string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)

Parameters

name
The name of the member to find.
bindingAttr
The binding attribute used to control the search.
binder
An object that implements System.Reflection.Binder, containing properties related to this method.
returnType
The type of the property.
types
An array used to choose among overloaded methods with the same name.
modifiers
An array used to choose the parameter modifiers.

Returns

A System.Reflection.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.

Remarks

This method retrieves a System.Reflection.PropertyInfo object corresponding to a specified property under specified search constraints. A type array is used to choose from among overloaded methods.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0