ProvideLanguageServiceAttribute.HideAdvancedMembersByDefault Property

 

Determines the initial state of the Hide Advanced Members option in the Options dialog box.

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

public bool HideAdvancedMembersByDefault { get; set; }

Property Value

Type: System.Boolean

Returns true if the Hide Advanced Members is initially selected; otherwise, returns false.

This property works with the EnableAdvancedMembersOption property.

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]\
    HideAdvancedMembersByDefault = reg_dword: 0x00000001

[ProvideLanguageService(typeof(MyLanguageService),           // Required
                        MyConstants.languageName,            // Required
                        MyConstants.languageNameResourceID,  // Required
    // Optional language service properties
    HideAdvancedMembersByDefault = true,  // Hide private members by default
                       )]
Return to top
Show: