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, ICodeClass[], ICodeClass, Int32)

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

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

Parameters

name
The name of the method to find.
arguments
An array of type ICodeClass that represents the classes of the arguments to search for.
returnType
An ICodeClass that represents the return type of the method to find.
modifiers
The modifiers to search for, or MemberModifier.UNKNOWN if you don't want to specify the modifiers.

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