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
'宣告
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.