다음을 통해 공유


Commands2.RemoveCommandBar(Object) Method

Definition

Removes a command bar that was created with the AddCommandBar(String, vsCommandBarType, Object, Int32) method.

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)

Parameters

CommandBar
Object

Required. The CommandBar object to remove.

Implements

Attributes

Remarks

This method fails if the command bar is intrinsic (built-in) to the environment.

Applies to