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
'宣言
Function AddNewBFNavigationItem ( _
pWindowFrame As IVsWindowFrame, _
bstrData As String, _
punk As Object, _
fReplaceCurrent As Integer _
) As Integer
'使用
Dim instance As IVsUIShell
Dim pWindowFrame As IVsWindowFrame
Dim bstrData As String
Dim punk As Object
Dim fReplaceCurrent As Integer
Dim returnValue As Integer
returnValue = instance.AddNewBFNavigationItem(pWindowFrame, _
bstrData, punk, fReplaceCurrent)
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
- 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.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsUIShell::AddNewBFNavigationItem(
[in] IVsWindowFrame *pWindowFrame,
[in] BSTR bstrData,
[in] IUnknown *punk,
[in] BOOL fReplaceCurrent
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.