IVsMethodData Interface
Sets method data for the tip window.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
<InterfaceTypeAttribute()> _
<GuidAttribute("69D2811C-682C-4290-B92E-5DFB823DF24C")> _
Public Interface IVsMethodData
[InterfaceTypeAttribute()]
[GuidAttribute("69D2811C-682C-4290-B92E-5DFB823DF24C")]
public interface IVsMethodData
[InterfaceTypeAttribute()]
[GuidAttribute(L"69D2811C-682C-4290-B92E-5DFB823DF24C")]
public interface class IVsMethodData
[<InterfaceTypeAttribute()>]
[<GuidAttribute("69D2811C-682C-4290-B92E-5DFB823DF24C")>]
type IVsMethodData = interface end
public interface IVsMethodData
The IVsMethodData type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetContextStream | Returns the context stream for the tip. | |
GetCurMethod | Returns the current method number. | |
GetCurrentParameter | Gets the current parameter number of the specified method. | |
GetMethodText | Gets a method return type, method name, or method description. | |
GetOverloadCount | Returns the number of overloaded methods. | |
GetParameterCount | Returns the total number of parameters in a specified method. | |
GetParameterText | Gets the text, usually the name, of a specified parameter for a specified method. | |
NextMethod | Gets the next method number. | |
OnDismiss | Dismisses the context. | |
PrevMethod | Gets the previous method number. | |
UpdateView | Updates the tip window when context or content has changed. |
Top
Remarks
When the language service recognizes a character indicating that method data should be provided (for example, a parenthesis "("), then the language service calls SetMethodData to tell the view that it wants to display a method tip window. The view then calls back into the language service using the methods of IVsMethodData to get the required information to display the method tip. See illustrations of the implementation and/or calling of this interface in the sample Figures Language Service.
Notes to Implementers
Implement this interface on your language service object to provide data for the method tip window.
Notes to Callers
Called by the view to obtain information for the method tip window.