IVsMethodData Interface
Collapse the table of content
Expand the table of content

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)

public interface IVsMethodData

System_CAPS_pubmethodGetContextStream(Int32, Int32)

Returns the context stream for the tip.


Returns the current method number.


Gets the current parameter number of the specified method.

System_CAPS_pubmethodGetMethodText(Int32, MethodTextType)

Gets a method return type, method name, or method description.


Returns the number of overloaded methods.


Returns the total number of parameters in a specified method.

System_CAPS_pubmethodGetParameterText(Int32, Int32, ParameterTextType)

Gets the text, usually the name, of a specified parameter for a specified method.


Gets the next method number.


Dismisses the context.


Gets the previous method number.


Updates the tip window when context or content has changed.

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 .d166df06-9a77-491d-aa81-6834a4ad7e50

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.

Return to top
© 2016 Microsoft