确定语言服务是否支持 IntelliSense 快速信息的。
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
Public Property QuickInfo As Boolean
public bool QuickInfo { get; set; }
属性值
类型:System.Boolean
,如果 IntelliSense 快速信息支持,返回 true ;否则,返回 false。
备注
IntelliSense 快速信息工具提示中显示,只要用户悬停在标识符的或光标置于标识符的插入符号并选择 编辑 - AMP_GT IntelliSense - AMP_GT 快速信息。快速信息的工具提示显示有关该标识符,通常标识符的类型的信息。在调试时,快速信息也可以显示在该标识符的当前包含的值,如果该标识符是变量。语言服务指示其为此 IntelliSense 操作支持通过设置 QuickInfo 属性设置为 true。
此属性特定于托管包结构 (MPF)。
,在对应的注册表项。 LanguagePreferences 类时,获取默认是 true 。
注册表项如下所示:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\[X.Y]\Languages\Language Services\
[Language Name]\
QuickInfo = reg_dword: 0x00000001
示例
[ProvideLanguageService(typeof(MyLanguageService), // Required
MyConstants.languageName, // Required
MyConstants.languageNameResourceID, // Required
// Optional language service properties
QuickInfo = true, // Quick Info is supported
)]
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。