Compartir a través de


ProvideLanguageServiceAttribute.EnableAdvancedMembersOption Property

Definition

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

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

Property Value

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

Examples

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

Remarks

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  

Applies to