Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Usage
Dim instance As IVsButtonBarManager
Dim ppButtonBar As IVsButtonBar
Dim returnValue As Integer
returnValue = instance.GetButtonBar(ppButtonBar)
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.