Delen via


AuthoringScope.GetMethods Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public MustOverride Function GetMethods ( _
    line As Integer, _
    col As Integer, _
    name As String _
) As Methods
public abstract Methods GetMethods(
    int line,
    int col,
    string name
)
public:
virtual Methods^ GetMethods(
    int line, 
    int col, 
    String^ name
) abstract
abstract GetMethods : 
        line:int * 
        col:int * 
        name:string -> Methods
public abstract function GetMethods(
    line : int, 
    col : int, 
    name : String
) : Methods

Parameters

  • line
    Type: Int32

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

  • col
    Type: Int32

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

  • name
    Type: 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.

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.

.NET Framework Security

See Also

Reference

AuthoringScope Class

Microsoft.VisualStudio.Package Namespace