Partager via


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

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

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

See Also

Reference

DataViewBrowseObject Class

GetProperty Overload

Microsoft.VisualStudio.Data.Framework Namespace