DataViewBrowseObject.IReflect.GetProperty Method (String, BindingFlags, Binder, Type, array<Type[], array<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.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Private 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
PropertyInfo IReflect.GetProperty(
string name,
BindingFlags bindingAttr,
Binder binder,
Type returnType,
Type[] types,
ParameterModifier[] modifiers
)
private:
virtual PropertyInfo^ GetProperty(
String^ name,
BindingFlags bindingAttr,
Binder^ binder,
Type^ returnType,
array<Type^>^ types,
array<ParameterModifier>^ modifiers
) sealed = IReflect::GetProperty
private abstract GetProperty :
name:string *
bindingAttr:BindingFlags *
binder:Binder *
returnType:Type *
types:Type[] *
modifiers:ParameterModifier[] -> PropertyInfo
private override GetProperty :
name:string *
bindingAttr:BindingFlags *
binder:Binder *
returnType:Type *
types:Type[] *
modifiers:ParameterModifier[] -> PropertyInfo
JScript does not support explicit interface implementations.
Parameters
- name
Type: System.String
The name of the property to get.
- bindingAttr
Type: System.Reflection.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
Type: System.Reflection.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 nulla null reference (Nothing in Visual Basic) to use the DefaultBinder.
- returnType
Type: System.Type
The return type of the property.
- types
Type: array<System.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
Type: array<System.Reflection.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.
Return Value
Type: System.Reflection.PropertyInfo
A PropertyInfo object representing the specified property for the type of the current instance that matches the specified requirements, if found; otherwise, returns nulla null reference (Nothing in Visual Basic).
Implements
IReflect.GetProperty(String, BindingFlags, Binder, Type, array<Type[], array<ParameterModifier[])
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.