Retrieves a PropertyInfo object corresponding to a specified property with specified search constraints.
[Visual Basic] Overloads Function GetProperty( _ ByVal name As String, _ ByVal bindingAttr As BindingFlags, _ ByVal binder As Binder, _ ByVal types() As Type, _ ByVal modifiers() As ParameterModifier _ ) As PropertyInfo [C#] PropertyInfo GetProperty( string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers ); [C++] PropertyInfo* GetProperty( String* name, BindingFlags bindingAttr, Binder* binder, Type* types[], ParameterModifier* modifiers[] ) = 0; [JScript] function GetProperty( name : String, bindingAttr : BindingFlags, binder : Binder, types : Type[], modifiers : ParameterModifier[] ) : PropertyInfo;
Value | Condition |
---|---|
A PropertyInfo object for the located property. | A property with the given name was located in this reflection object. |
null | The property was not located. |
The GetProperty method retrieves a PropertyInfo object corresponding to a specified property under specified search constraints. A type array is used to choose among overloaded methods with the same name.
An example of a binding attribute value is IgnoreCase.
IReflect Interface | IReflect Members | System.Reflection Namespace | IReflect.GetProperty Overload List | ParameterModifier | Type | Binder | String | BindingFlags