Bagikan melalui


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)

Syntax

'Declaration
Function AddNewBFNavigationItem ( _
    pWindowFrame As IVsWindowFrame, _
    bstrData As String, _
    punk As Object, _
    fReplaceCurrent As Integer _
) As Integer
int AddNewBFNavigationItem(
    IVsWindowFrame pWindowFrame,
    string bstrData,
    Object punk,
    int fReplaceCurrent
)
int AddNewBFNavigationItem(
    [InAttribute] IVsWindowFrame^ pWindowFrame, 
    [InAttribute] String^ bstrData, 
    [InAttribute] Object^ punk, 
    [InAttribute] int fReplaceCurrent
)
abstract AddNewBFNavigationItem : 
        pWindowFrame:IVsWindowFrame * 
        bstrData:string * 
        punk:Object * 
        fReplaceCurrent:int -> int
function AddNewBFNavigationItem(
    pWindowFrame : IVsWindowFrame, 
    bstrData : String, 
    punk : Object, 
    fReplaceCurrent : int
) : int

Parameters

  • 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.

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsUIShell Interface

Microsoft.VisualStudio.Shell.Interop Namespace