Share via


AuthoringScope.GetMethods(Int32, Int32, String) Method

Definition

Returns a list of overloaded method signatures for a specified method name.

public:
 abstract Microsoft::VisualStudio::Package::Methods ^ GetMethods(int line, int col, System::String ^ name);
public:
 abstract Microsoft::VisualStudio::Package::Methods ^ GetMethods(int line, int col, Platform::String ^ name);
 abstract Microsoft::VisualStudio::Package::Methods GetMethods(int line, int col, std::wstring const & name);
public abstract Microsoft.VisualStudio.Package.Methods GetMethods (int line, int col, string name);
abstract member GetMethods : int * int * string -> Microsoft.VisualStudio.Package.Methods
Public MustOverride Function GetMethods (line As Integer, col As Integer, name As String) As Methods

Parameters

line
Int32

[in] The line number where the parse for method signatures started.

col
Int32

[in] The offset into the line where the parse for method signatures started.

name
String

[in] The name of the method for which to get permutations.

Returns

If successful, returns a Methods object; otherwise, returns a null value.

Remarks

This method is called to obtain a list of overloaded methods to show in the IntelliSense method tip. Note that the parse operation has been completed by the time this method is called.

In the default managed package framework implementation, the Source class method MethodTip is called when a parse operation returns MethodTip from the TokenTriggers enumeration. This in turn triggers a quick parse with the reason MethodTip from the ParseReason enumeration. When that parse operation completes, the GetMethods method is called to return a list of method signatures matching the specified string. Note that the returned object is always your implementation of the Methods class.

Applies to