AccessibleObject.IReflect.GetProperty Method

Definition

Overloads

IReflect.GetProperty(String, BindingFlags)

Gets a PropertyInfo object corresponding to a specified property under specified search constraints. For a description of this member, see GetProperty(String, BindingFlags).

IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Gets a PropertyInfo object corresponding to a specified property with specified search constraints. For a description of this member, see GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]).

IReflect.GetProperty(String, BindingFlags)

Gets a PropertyInfo object corresponding to a specified property under specified search constraints. For a description of this member, see GetProperty(String, BindingFlags).

 virtual System::Reflection::PropertyInfo ^ System.Reflection.IReflect.GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetProperty;
System.Reflection.PropertyInfo IReflect.GetProperty (string name, System.Reflection.BindingFlags bindingAttr);
Function GetProperty (name As String, bindingAttr As BindingFlags) As PropertyInfo Implements IReflect.GetProperty

Parameters

name
String

The name of the property to find.

bindingAttr
BindingFlags

The binding attributes used to control the search.

Returns

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

Implements

Exceptions

The object implements multiple methods with the same name.

Remarks

This member is an explicit interface member implementation. It can be used only when the AccessibleObject instance is cast to an IReflect interface.

IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Gets a PropertyInfo object corresponding to a specified property with specified search constraints. For a description of this member, see GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]).

 virtual System::Reflection::PropertyInfo ^ System.Reflection.IReflect.GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers) = System::Reflection::IReflect::GetProperty;
System.Reflection.PropertyInfo IReflect.GetProperty (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);

Parameters

name
String

The name of the member to find.

bindingAttr
BindingFlags

The binding attributes used to control the search.

binder
Binder

An object that implements Binder, containing properties related to this method.

returnType
Type

An array used to choose among overloaded methods.

types
Type[]

An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified.

modifiers
ParameterModifier[]

An array used to choose the parameter modifiers.

Returns

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

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the AccessibleObject instance is cast to an IReflect interface.

Applies to