CommandBar.Protection 属性

定义

获取或设置此命令栏的保护级别。

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

属性值

MsoBarProtection

始终返回 msoBarNoProtection

属性

注解

尝试将此属性设置为任何其他值将导致引发异常。

适用于