This documentation is archived and is not being maintained.

IVsUIShell.AddNewBFNavigationItem Method

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 (
	[InAttribute] IVsWindowFrame pWindowFrame,
	[InAttribute] string bstrData,
	[InAttribute] Object punk,
	[InAttribute] int fReplaceCurrent
)
int AddNewBFNavigationItem (
	/** @attribute InAttribute() */ IVsWindowFrame pWindowFrame, 
	/** @attribute InAttribute() */ String bstrData, 
	/** @attribute InAttribute() */ Object punk, 
	/** @attribute InAttribute() */ int fReplaceCurrent
)
function AddNewBFNavigationItem (
	pWindowFrame : IVsWindowFrame, 
	bstrData : String, 
	punk : Object, 
	fReplaceCurrent : int
) : int

Parameters

pWindowFrame

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

bstrData

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

punk

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

fReplaceCurrent

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

Return Value

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

COM Signature

From vsshell.idl:

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