Fired when a new button is pressed.
Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
声明
Function OnButtonPressed ( _
    iButton As Integer _
) As Integer
用法
Dim instance As IVsButtonBarClient
Dim iButton As Integer
Dim returnValue As Integer
returnValue = instance.OnButtonPressed(iButton)
int OnButtonPressed(
    int iButton
)
int OnButtonPressed(
    [InAttribute] int iButton
)
abstract OnButtonPressed : 
        iButton:int -> int 
function OnButtonPressed(
    iButton : int
) : int
Parameters
- iButton
 Type: System.Int32
 [in]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsButtonBarClient::OnButtonPressed(
   [in] long iButton
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.