DataViewBrowseObject.IReflect.GetProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IReflect.GetProperty(String, BindingFlags) |
Retrieves the specified property for the type of the current instance, using the specified binding constraints. |
IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) |
Retrieves the specified public property whose parameters match the specified argument types and modifiers for the type of the current instance, using the specified binding constraints. |
IReflect.GetProperty(String, BindingFlags)
Retrieves the specified property for the type of the current instance, using the specified binding constraints.
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);
abstract member System.Reflection.IReflect.GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
override this.System.Reflection.IReflect.GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
Function GetProperty (name As String, bindingAttr As BindingFlags) As PropertyInfo Implements IReflect.GetProperty
Parameters
- name
- String
The name of the property to get.
- bindingAttr
- BindingFlags
A bitmask made up of one or more BindingFlags that specify how the search is conducted, or zero to return an empty array.
Returns
An array of PropertyInfo objects representing all the properties for the type of the current instance that match the specified binding constraints. If the type of the current instance does not have properties, or if none of the properties match the binding constraints, returns an empty array of type PropertyInfo.
Implements
Applies to
IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])
Retrieves the specified public property whose parameters match the specified argument types and modifiers for the type of the current instance, using the specified binding constraints.
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);
abstract member System.Reflection.IReflect.GetProperty : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
override this.System.Reflection.IReflect.GetProperty : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Function GetProperty (name As String, bindingAttr As BindingFlags, binder As Binder, returnType As Type, types As Type(), modifiers As ParameterModifier()) As PropertyInfo Implements IReflect.GetProperty
Parameters
- name
- String
The name of the property to get.
- bindingAttr
- BindingFlags
A bitmask made up of one or more BindingFlags that specify how the search is conducted, or zero to return an empty array.
- binder
- Binder
A Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection; or null to use the DefaultBinder.
- returnType
- Type
The return type of the property.
- types
- Type[]
An array of Type objects representing the number, order, and type of the parameters for the indexed property to get, or an empty Type array to get a property that is not indexed.
- modifiers
- ParameterModifier[]
An array of ParameterModifier objects representing the attributes associated with the corresponding element in the types array. The default binder does not process this parameter.
Returns
A PropertyInfo object representing the specified property for the type of the current instance that matches the specified requirements, if found; otherwise, returns null.