共用方式為


ProvideLanguageServiceAttribute.QuickInfo Property

Determines if the language service supports the IntelliSense Quick Info.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Property QuickInfo As Boolean
public bool QuickInfo { get; set; }

Property Value

Type: System.Boolean
Returns true if the IntelliSense Quick Info is supported; otherwise, returns false.

Remarks

The IntelliSense Quick Info ToolTip is displayed whenever a user holds the cursor over an identifier or positions the caret in an identifier and selects Edit -> IntelliSense -> Quick Info. The Quick Info ToolTip displays information about the identifier, typically the identifier's type. While debugging, the Quick Info can also display the value currently contained in the identifier if the identifier is a variable. A language service indicates its support for this IntelliSense operation by setting the QuickInfo property to true.

This property is specific to the managed package framework (MPF).

The default is true when the corresponding registry entry is accessed through the LanguagePreferences class.

The registry entry looks like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\[X.Y]\Languages\Language Services\
  [Language Name]\
    QuickInfo = reg_dword: 0x00000001

Examples

    [ProvideLanguageService(typeof(MyLanguageService),           // Required
                            MyConstants.languageName,            // Required
                            MyConstants.languageNameResourceID,  // Required
        // Optional language service properties
        QuickInfo = true,  // Quick Info is supported
                           )]

.NET Framework Security

See Also

Reference

ProvideLanguageServiceAttribute Class

Microsoft.VisualStudio.Shell Namespace