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!

MemberDescriptor.FindMethod

Finds the given method through reflection.

[Visual Basic]
Protected Shared Function FindMethod( _
   ByVal componentClass As Type, _
   ByVal name As String, _
   ByVal args() As Type, _
   ByVal returnType As Type _
) As MethodInfo
[C#]
protected static MethodInfo FindMethod(
   Type componentClass,
   string name,
   Type[] args,
   Type returnType
);
[C++]
protected: static MethodInfo* FindMethod(
   Type* componentClass,
   String* name,
   Type* args[],
   Type* returnType
);
[JScript]
protected static function FindMethod(
   componentClass : Type,
   name : String,
   args : Type[],
   returnType : Type
) : MethodInfo;

Parameters

componentClass
The component that contains the method.
name
The name of the method to find.
args
An array of parameters for the method. This is used to choose between overloaded methods.
returnType
The type to return for the method.

Return Value

A MethodInfo that represents the method. If the method is not found, a null reference (in Visual Basic Nothing) is returned.

See Also

MemberDescriptor Class | MemberDescriptor Members | System.ComponentModel Namespace