Partager via


ProvideLanguageServiceAttribute.HideAdvancedMembersByDefault Property

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Déclaration
Public Property HideAdvancedMembersByDefault As Boolean
    Get
    Set
'Utilisation
Dim instance As ProvideLanguageServiceAttribute
Dim value As Boolean

value = instance.HideAdvancedMembersByDefault

instance.HideAdvancedMembersByDefault = value
public bool HideAdvancedMembersByDefault { get; set; }
public:
property bool HideAdvancedMembersByDefault {
    bool get ();
    void set (bool value);
}
member HideAdvancedMembersByDefault : bool with get, set
function get HideAdvancedMembersByDefault () : boolean
function set HideAdvancedMembersByDefault (value : boolean)

Property Value

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

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

Examples

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

.NET Framework Security

See Also

Reference

ProvideLanguageServiceAttribute Class

ProvideLanguageServiceAttribute Members

Microsoft.VisualStudio.Shell Namespace