CommandBar.Protection 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置此命令栏的保护级别。
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
属性值
始终返回 msoBarNoProtection。
- 属性
注解
尝试将此属性设置为任何其他值将导致引发异常。