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.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Declaration
Public Property HideAdvancedMembersByDefault As Boolean
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.