Commands2.RemoveCommandBar(Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
删除使用方法创建的命令栏 AddCommandBar(String, vsCommandBarType, Object, Int32) 。
public:
void RemoveCommandBar(System::Object ^ CommandBar);
public:
void RemoveCommandBar(Platform::Object ^ CommandBar);
void RemoveCommandBar(winrt::Windows::Foundation::IInspectable const & CommandBar);
[System.Runtime.InteropServices.DispId(13)]
public void RemoveCommandBar (object CommandBar);
[<System.Runtime.InteropServices.DispId(13)>]
abstract member RemoveCommandBar : obj -> unit
Public Sub RemoveCommandBar (CommandBar As Object)
参数
- CommandBar
- Object
必需。 要移除的 CommandBar 对象。
实现
- 属性
注解
如果命令栏 (内置) 到环境中,则此方法将失败。