Partager via


ProvideLanguageServiceAttribute.ShowCompletion Property

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Déclaration
Public Property ShowCompletion As Boolean
    Get
    Set
'Utilisation
Dim instance As ProvideLanguageServiceAttribute
Dim value As Boolean

value = instance.ShowCompletion

instance.ShowCompletion = value
public bool ShowCompletion { get; set; }
public:
property bool ShowCompletion {
    bool get ();
    void set (bool value);
}
member ShowCompletion : bool with get, set
function get ShowCompletion () : boolean
function set ShowCompletion (value : boolean)

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

ProvideLanguageServiceAttribute Members

Microsoft.VisualStudio.Shell Namespace