ProvideLanguageServiceAttribute.EnableAdvancedMembersOption Property

Determines whether the Hide Advanced Members option is enabled in the Options dialog box.

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


Public Property EnableAdvancedMembersOption As Boolean
public bool EnableAdvancedMembersOption { get; set; }
property bool EnableAdvancedMembersOption {
    bool get ();
    void set (bool value);
member EnableAdvancedMembersOption : bool with get, set
function get EnableAdvancedMembersOption () : boolean
function set EnableAdvancedMembersOption (value : boolean)

Property Value

Type: System.Boolean
Returns true if the Hide Advanced Members option is enabled; otherwise, returns false.


The Options dialog box (available under Tools -> Options menu) shows for languages a general set of options. One of those options is the Hide Advanced Members. When this option is selected, members of a class not normally accessible from a particular place in the source code are not shown when an IntelliSense members list is displayed. The EnableAdvancedMembersOption property determines whether the Hide Advanced Members option is even available for a language. If this property is set to true, then the Hide Advanced Members option can be selected. This property works in conjunction with the HideAdvancedMembersByDefault property which sets the initial state of the Hide Advanced Members option.

This property is available to any language service implementation.

The default is false 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]\
    EnableAdvancedMembersOption = reg_dword: 0x00000001


    [ProvideLanguageService(typeof(MyLanguageService),           // Required
                            MyConstants.languageName,            // Required
                            MyConstants.languageNameResourceID,  // Required
        // Optional language service properties
        EnableAdvancedMembersOption = true,  // Always show private members

.NET Framework Security

See Also


ProvideLanguageServiceAttribute Class

Microsoft.VisualStudio.Shell Namespace