Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the Button bar associated with a code window.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
Function GetButtonBar ( _
<OutAttribute> ByRef ppButtonBar As IVsButtonBar _
) As Integer
int GetButtonBar(
out IVsButtonBar ppButtonBar
)
int GetButtonBar(
[OutAttribute] IVsButtonBar^% ppButtonBar
)
abstract GetButtonBar :
ppButtonBar:IVsButtonBar byref -> int
function GetButtonBar(
ppButtonBar : IVsButtonBar
) : int
Parameters
- ppButtonBar
Type: Microsoft.VisualStudio.TextManager.Interop.IVsButtonBar%
[out] Pointer to a Buttonbar.
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 IVsButtonBarManager::GetButtonBar(
[out] IVsButtonBar **ppButtonBar
);
GetButtonBar sends back the Button bar associated with a code window, if any. If a Buttonbar is associated with the window, GetButtonBar returns S_OK and sends back an AddRef'd pointer to the Buttonbar. Otherwise it returns S_FALSE and sets ppButtonBar to nulla null reference (Nothing in Visual Basic).
.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.