Share via


TypeDelegator.GetMethodImpl Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Protected Overrides Function GetMethodImpl ( _
    name As String, _
    bindingAttr As BindingFlags, _
    binder As Binder, _
    callConvention As CallingConventions, _
    types As Type(), _
    modifiers As ParameterModifier() _
) As MethodInfo
protected override MethodInfo GetMethodImpl(
    string name,
    BindingFlags bindingAttr,
    Binder binder,
    CallingConventions callConvention,
    Type[] types,
    ParameterModifier[] modifiers
)

Parameters

  • binder
    Type: System.Reflection.Binder
    An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects using reflection. If binder is nulla null reference (Nothing in Visual Basic), the default binder is used.
  • types
    Type: array<System.Type[]
    An array of type Type containing a list of the parameter number, order, and types. Types cannot be nulla null reference (Nothing in Visual Basic); use an appropriate GetMethod method or an empty array to search for a method without parameters.
  • modifiers
    Type: array<System.Reflection.ParameterModifier[]
    An array of type ParameterModifier having the same length as the types array, whose elements represent the attributes associated with the parameters of the method to get.

Return Value

Type: System.Reflection.MethodInfo
A MethodInfoInfo object for the implementation method that matches the specified criteria, or nulla null reference (Nothing in Visual Basic) if a match cannot be found.

Remarks

The callConvention parameter indicates the calling convention for the entry point. If no CallingConventions is specified, a default CallingConventions value of Standard is used.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.