IVsUIShell.AddNewBFNavigationItem Method (IVsWindowFrame, String, Object, Int32)

 

Adds a new backward and forward navigation item.

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

int AddNewBFNavigationItem(
	IVsWindowFrame pWindowFrame,
	string bstrData,
	object punk,
	int fReplaceCurrent
)

Parameters

pWindowFrame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame

[in] Pointer to the window frame for the window containing the backward and forward navigation item.

bstrData
Type: System.String

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

punk
Type: System.Object

[in] Pointer to a specific interface for the navigation point.

fReplaceCurrent
Type: System.Int32

[in] If true, then the current navigation item is replaced.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsUIShell::AddNewBFNavigationItem(
   [in] IVsWindowFrame *pWindowFrame,
   [in] BSTR bstrData,
   [in] IUnknown *punk,
   [in] BOOL fReplaceCurrent
);
Return to top
Show: