IVsUIShell.GetCurrentBFNavigationItem Method

Returns the current backward and forward navigation item.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function GetCurrentBFNavigationItem ( _
    <OutAttribute> ByRef ppWindowFrame As IVsWindowFrame, _
    <OutAttribute> ByRef pbstrData As String, _
    <OutAttribute> ByRef ppunk As Object _
) As Integer
'使用
Dim instance As IVsUIShell
Dim ppWindowFrame As IVsWindowFrame
Dim pbstrData As String
Dim ppunk As Object
Dim returnValue As Integer

returnValue = instance.GetCurrentBFNavigationItem(ppWindowFrame, _
    pbstrData, ppunk)
int GetCurrentBFNavigationItem(
    out IVsWindowFrame ppWindowFrame,
    out string pbstrData,
    out Object ppunk
)
int GetCurrentBFNavigationItem(
    [OutAttribute] IVsWindowFrame^% ppWindowFrame, 
    [OutAttribute] String^% pbstrData, 
    [OutAttribute] Object^% ppunk
)
function GetCurrentBFNavigationItem(
    ppWindowFrame : IVsWindowFrame, 
    pbstrData : String, 
    ppunk : Object
) : int

Parameters

  • pbstrData
    Type: System.String%

    [out] Any arbitrary data that is needed for the navigation point (insertion point).

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 vsshell.idl:

HRESULT IVsUIShell::GetCurrentBFNavigationItem(
   [out] IVsWindowFrame **ppWindowFrame,
   [out] BSTR * pbstrData,
   [out] IUnknown **ppunk
);

If you want to provide backward and forward navigation points within your window, implement IVsBackForwardNavigation. The core text editor uses text markers to identify navigation points in the environment.

Permissions

See Also

Reference

IVsUIShell Interface

IVsUIShell Members

Microsoft.VisualStudio.Shell.Interop Namespace