System.Reflection.IReflect.GetProperty Method

Retrieves a System.Reflection.PropertyInfo object corresponding to a specified property under specified search constraints.

Syntax

public PropertyInfo GetProperty (string name, BindingFlags bindingAttr)

Parameters

name
The name of the property to find.
bindingAttr
The binding attributes used to control the search.

Returns

A System.Reflection.PropertyInfo object for the located property that meets the search constraints specified in bindingAttr, or null if the property was not located.

Remarks

Documentation for this section has not yet been entered.

Requirements

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