Partilhar via


ProvideLanguageServiceAttribute.ShowCompletion Property

Determines if the Statement completion options are enabled in the Options dialog box.

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

Syntax

'Declaração
Public Property ShowCompletion As Boolean
public bool ShowCompletion { get; set; }

Property Value

Type: System.Boolean
Returns true if the Statement completion options are enabled; otherwise, returns false.

Remarks

If a language service supports the IntelliSense operations Completion Word, Parameter Info and List Members, it should set the ShowCompletion property to true to enable the Statement completion options in the Options dialog box. These options include Auto list members, Hide advanced members, and Parameter information.

This property is available for any language service implementation.

The default is false, indicating the Statement completion options are disabled.

The registry entry looks like this:

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

Examples

    [ProvideLanguageService(typeof(MyLanguageService),           // Required
                            MyConstants.languageName,            // Required
                            MyConstants.languageNameResourceID,  // Required
        // Optional language service properties
        ShowCompletion = true,  // Statement completion is supported
                           )]

.NET Framework Security

See Also

Reference

ProvideLanguageServiceAttribute Class

Microsoft.VisualStudio.Shell Namespace