ProvideLanguageServiceAttribute.HideAdvancedMembersByDefault Property

Definition

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

public:
 property bool HideAdvancedMembersByDefault { bool get(); void set(bool value); };
public:
 property bool HideAdvancedMembersByDefault { bool get(); void set(bool value); };
public bool HideAdvancedMembersByDefault { get; set; }
member this.HideAdvancedMembersByDefault : bool with get, set
Public Property HideAdvancedMembersByDefault As Boolean

Property Value

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

Examples

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

Remarks

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  

Applies to