CommandBar.Protection Property

Definition

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.

Applies to