CommandBar.Protection 属性

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

命名空间:  Microsoft.VisualStudio.CommandBars
程序集:  Microsoft.VisualStudio.CommandBars(在 Microsoft.VisualStudio.CommandBars.dll 中)

语法

声明
Property Protection As MsoBarProtection
MsoBarProtection Protection { get; set; }

属性值

类型:Microsoft.VisualStudio.CommandBars.MsoBarProtection
始终返回 msoBarNoProtection

备注

尝试设置与其他值的此属性将会引发异常时引发。

.NET Framework 安全性

请参见

参考

CommandBar 接口

Microsoft.VisualStudio.CommandBars 命名空间