次の方法で共有


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.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣言
Public Property HideAdvancedMembersByDefault As Boolean
public bool HideAdvancedMembersByDefault { get; set; }

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

Microsoft.VisualStudio.Shell Namespace