CommandBar::Protection Property
Visual Studio 2015
Gets or sets the protection level of this command bar.
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
[DispIdAttribute(1610874903)] property MsoBarProtection Protection { [DispIdAttribute(1610874903)] MsoBarProtection get(); [DispIdAttribute(1610874903)] void set(MsoBarProtection value); }
Property Value
Type: Microsoft.VisualStudio.CommandBars::MsoBarProtectionAlways returns msoBarNoProtection.
Attempting to set this property with any other value will cause an exception to be thrown.
Show: