Partager via


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

'Déclaration
<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
Public method GetContextStream Returns the context stream for the tip.
Public method GetCurMethod Returns the current method number.
Public method GetCurrentParameter Gets the current parameter number of the specified method.
Public method GetMethodText Gets a method return type, method name, or method description.
Public method GetOverloadCount Returns the number of overloaded methods.
Public method GetParameterCount Returns the total number of parameters in a specified method.
Public method GetParameterText Gets the text, usually the name, of a specified parameter for a specified method.
Public method NextMethod Gets the next method number.
Public method OnDismiss Dismisses the context.
Public method PrevMethod Gets the previous method number.
Public method 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.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace