IVsMethodData 接口

设置方法数据提示窗口。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
<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

IVsMethodData 类型公开以下成员。

方法

  名称 说明
公共方法 GetContextStream 返回该提示的上下文流。
公共方法 GetCurMethod 返回当前方法数字。
公共方法 GetCurrentParameter 返回当前参数编号。
公共方法 GetMethodText 返回方法返回类型、方法名称或方法声明。
公共方法 GetOverloadCount 返回重载方法的数量。
公共方法 GetParameterCount 返回参数的总数在指定的和方法。
公共方法 GetParameterText 返回指定的参数名称指定的一个方法。
公共方法 NextMethod 返回下一个方法数字。
公共方法 OnDismiss 关闭上下文。
公共方法 PrevMethod 返回上一个方法数字。
公共方法 UpdateView ,在上下文或内容更改时,更新提示窗口。

页首

备注

当语言服务识别表示的字符应提供方法的数据 (例如,括号 “("),然后语言服务调用 SetMethodData 调用视图需要公开方法提示窗口。 视图然后调用回语言服务使用 IVsMethodData get 方法公开方法提示的所需信息。 请参见实现和/或调用的插图在该示例 Figures Language Service的此接口。

对实现者的说明

实现在语言服务对象的此接口的方法提示窗口提供数据。

对调用者的说明

调用视图获取方法提示窗口的信息。

请参阅

参考

Microsoft.VisualStudio.TextManager.Interop 命名空间