IVsUIShell::GetCurrentBFNavigationItem Method (IVsWindowFrame^, String^, Object^)
Visual Studio 2015
Returns the current backward and forward navigation item.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GetCurrentBFNavigationItem(
[OutAttribute] IVsWindowFrame^% ppWindowFrame,
[OutAttribute] String^% pbstrData,
[OutAttribute] Object^% ppunk
)
Parameters
- ppWindowFrame
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^
[out] Pointer to the window frame for the window containing the backward and forward navigation item.
- pbstrData
-
Type:
System::String^
[out] Any arbitrary data that is needed for the navigation point (insertion point).
- ppunk
-
Type:
System::Object^
[out] Pointer to a specific interface for the navigation point. This is the interface passed in AddNewBFNavigationItem.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: