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!

ICodeClass.FindMethod (String, ICodeParameter[], ICodeClass)

Finds the method in the class with the specified name, arguments, and return type.

[Visual Basic]
Overloads Function FindMethod( _
   ByVal name As String, _
   ByVal arguments() As ICodeParameter, _
   ByVal returnType As ICodeClass _
) As ICodeMethod
[C#]
ICodeMethod FindMethod(
   string name,
   ICodeParameter[] arguments,
   ICodeClass returnType
);
[C++]
ICodeMethod* FindMethod(
   String* name,
   ICodeParameter* arguments[],
   ICodeClass* returnType
) = 0;
[JScript]
function FindMethod(
   name : String,
   arguments : ICodeParameter[],
   returnType : ICodeClass
) : ICodeMethod;

Parameters

name
The name of the method to find.
arguments
An array of type ICodeParameter that represents the arguments of the method to find.
returnType
An ICodeClass representing the return type of the method to find.

Return Value

An ICodeMethod object representing the method in the class matching the specified parameters. If no matching method is found, a null reference (in Visual Basic Nothing) is returned.

See Also

ICodeClass Interface | ICodeClass Members | System.ComponentModel.Design.CodeModel Namespace | ICodeClass.FindMethod Overload List