NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

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

Retrieves a MethodInfo object corresponding to a specified method, and a type array is used to choose among overloaded methods with the same name.

[Visual Basic]
Overloads Function GetMethod( _
   ByVal name As String, _
   ByVal bindingAttr As BindingFlags, _
   ByVal binder As Binder, _
   ByVal types() As Type, _
   ByVal modifiers() As ParameterModifier _
) As MethodInfo
[C#]
MethodInfo GetMethod(
   string name,
   BindingFlags bindingAttr,
   Binder binder,
   Type[] types,
   ParameterModifier[] modifiers
);
[C++]
MethodInfo* GetMethod(
   String* name,
   BindingFlags bindingAttr,
   Binder* binder,
   Type* types[],
   ParameterModifier* modifiers[]
) = 0;
[JScript]
function GetMethod(
   name : String,
   bindingAttr : BindingFlags,
   binder : Binder,
   types : Type[],
   modifiers : ParameterModifier[]
) : MethodInfo;

Parameters

name
The name of the member to find.
bindingAttr
The binding attributes help control the search.
binder
An object which implements Binder, containing properties related to this method.
types
This array is used to choose among overloaded methods with the same name.
modifiers
[To be supplied.]

Return Value

The requested method.

Exceptions

Exception Type Condition
AmbiguousMatchException If the object implements multiple methods with the same name.

Remarks

The GetMethod method retrieves a MethodInfo object corresponding to a specified method, and a type array is used to choose among overloaded methods with the same name.An example of a binding attribute value is IgnoreCase. The return value is a match is based upon the name and System.Reflection.DescriptorInfo which describes the signature of the method.

See Also

IReflect Interface | IReflect Members | System.Reflection Namespace | IReflect.GetMethod Overload List | String | BindingFlags | Binder | Type | ParameterModifier