CommandBar.Protection Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the protection level of this command bar.
public:
property Microsoft::VisualStudio::CommandBars::MsoBarProtection Protection { Microsoft::VisualStudio::CommandBars::MsoBarProtection get(); void set(Microsoft::VisualStudio::CommandBars::MsoBarProtection value); };
public:
property Microsoft::VisualStudio::CommandBars::MsoBarProtection Protection { Microsoft::VisualStudio::CommandBars::MsoBarProtection get(); void set(Microsoft::VisualStudio::CommandBars::MsoBarProtection value); };
[System.Runtime.InteropServices.DispId(1610874903)]
public Microsoft.VisualStudio.CommandBars.MsoBarProtection Protection { [System.Runtime.InteropServices.DispId(1610874903)] get; [System.Runtime.InteropServices.DispId(1610874903)] set; }
[<System.Runtime.InteropServices.DispId(1610874903)>]
[<get: System.Runtime.InteropServices.DispId(1610874903)>]
[<set: System.Runtime.InteropServices.DispId(1610874903)>]
member this.Protection : Microsoft.VisualStudio.CommandBars.MsoBarProtection with get, set
Public Property Protection As MsoBarProtection
Property Value
Always returns msoBarNoProtection.
- Attributes
Remarks
Attempting to set this property with any other value will cause an exception to be thrown.