Share via


DataViewBrowseObject.IReflect.GetMethod Method (String, BindingFlags, Binder, array<Type[], array<ParameterModifier )

Retrieves the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints for the type of the current instance.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Private Function GetMethod ( _
    name As String, _
    bindingAttr As BindingFlags, _
    binder As Binder, _
    types As Type(), _
    modifiers As ParameterModifier() _
) As MethodInfo Implements IReflect.GetMethod
MethodInfo IReflect.GetMethod(
    string name,
    BindingFlags bindingAttr,
    Binder binder,
    Type[] types,
    ParameterModifier[] modifiers
)
private:
virtual MethodInfo^ GetMethod(
    String^ name, 
    BindingFlags bindingAttr, 
    Binder^ binder, 
    array<Type^>^ types, 
    array<ParameterModifier>^ modifiers
) sealed = IReflect::GetMethod
private abstract GetMethod : 
        name:string * 
        bindingAttr:BindingFlags * 
        binder:Binder * 
        types:Type[] * 
        modifiers:ParameterModifier[] -> MethodInfo  
private override GetMethod : 
        name:string * 
        bindingAttr:BindingFlags * 
        binder:Binder * 
        types:Type[] * 
        modifiers:ParameterModifier[] -> MethodInfo
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.

  • types
    Type: array<System.Type[]

    An array of [T:System.]Type objects representing the number, order, and type of the parameters for the method to get, or an empty array of Type objects (as provided by the EmptyTypes field) to get a method that takes no parameters.

  • modifiers
    Type: array<System.Reflection.ParameterModifier[]

    An array of ParameterModifier objects representing the attributes associated with the corresponding element in the types array. To be used only when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.

Return Value

Type: System.Reflection.MethodInfo
A MethodInfo object representing the method that matches the specified binding constraints for the type of the current instance, if found; otherwise, nulla null reference (Nothing in Visual Basic).

Implements

IReflect.GetMethod(String, BindingFlags, Binder, array<Type[], array<ParameterModifier[])

.NET Framework Security

See Also

Reference

DataViewBrowseObject Class

GetMethod Overload

Microsoft.VisualStudio.Data.Framework Namespace