Share via


CommandBarButtonClass Class

Represents a command bar button.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

‘선언
<GuidAttribute("E322950C-AAF9-43DF-A328-62A1A7E96AA6")> _
<ClassInterfaceAttribute()> _
Public Class CommandBarButtonClass _
    Implements _CommandBarButton, CommandBarButton, _CommandBarButtonEvents_Event
‘사용 방법
Dim instance As CommandBarButtonClass
[GuidAttribute("E322950C-AAF9-43DF-A328-62A1A7E96AA6")]
[ClassInterfaceAttribute()]
public class CommandBarButtonClass : _CommandBarButton, 
    CommandBarButton, _CommandBarButtonEvents_Event
[GuidAttribute(L"E322950C-AAF9-43DF-A328-62A1A7E96AA6")]
[ClassInterfaceAttribute()]
public ref class CommandBarButtonClass : _CommandBarButton, 
    CommandBarButton, _CommandBarButtonEvents_Event
[<GuidAttribute("E322950C-AAF9-43DF-A328-62A1A7E96AA6")>]
[<ClassInterfaceAttribute()>]
type CommandBarButtonClass =  
    class
        interface _CommandBarButton
        interface CommandBarButton
        interface _CommandBarButtonEvents_Event
    end
public class CommandBarButtonClass implements _CommandBarButton, CommandBarButton, _CommandBarButtonEvents_Event

Remarks

A _CommandBarButton implements only CommandBarControl, which defines no events. A CommandBarButton implements both _CommandBarButton and _CommandBarButtonEvents_Event. CommandBarButtonClass implements all three interfaces.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.CommandBars.CommandBarButtonClass

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CommandBarButtonClass Members

Microsoft.VisualStudio.CommandBars Namespace