AuthoringScope.GetMethods Method (Int32, Int32, String)

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public abstract Methods GetMethods(
	int line,
	int col,
	string name
)

Parameters

line
Type: System.Int32

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

col
Type: System.Int32

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

name
Type: System.String

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

Return Value

Type: Microsoft.VisualStudio.Package.Methods

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

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.

Return to top
Show: