Partager via


IVsMethodData Interface

Definition

Sets method data for the tip window.

public interface class IVsMethodData
public interface class IVsMethodData
__interface IVsMethodData
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("69D2811C-682C-4290-B92E-5DFB823DF24C")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsMethodData
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("69D2811C-682C-4290-B92E-5DFB823DF24C")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsMethodData
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("69D2811C-682C-4290-B92E-5DFB823DF24C")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsMethodData = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("69D2811C-682C-4290-B92E-5DFB823DF24C")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsMethodData = interface
Public Interface IVsMethodData
Derived
Attributes

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.

Methods

GetContextStream(Int32, Int32)

Returns the context stream for the tip.

GetCurMethod()

Returns the current method number.

GetCurrentParameter(Int32)

Gets the current parameter number of the specified method.

GetMethodText(Int32, MethodTextType)

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

GetOverloadCount()

Returns the number of overloaded methods.

GetParameterCount(Int32)

Returns the total number of parameters in a specified method.

GetParameterText(Int32, Int32, ParameterTextType)

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.

Applies to