IVsUIShell.GetCurrentBFNavigationItem(IVsWindowFrame, String, Object) 方法

定义

返回当前的向后和向前导航项。

public:
 int GetCurrentBFNavigationItem([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ % ppWindowFrame, [Runtime::InteropServices::Out] System::String ^ % pbstrData, [Runtime::InteropServices::Out] System::Object ^ % ppunk);
int GetCurrentBFNavigationItem([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame const & & ppWindowFrame, [Runtime::InteropServices::Out] std::wstring const & & pbstrData, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppunk);
public int GetCurrentBFNavigationItem (out Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame ppWindowFrame, out string pbstrData, out object ppunk);
abstract member GetCurrentBFNavigationItem : IVsWindowFrame * string * obj -> int
Public Function GetCurrentBFNavigationItem (ByRef ppWindowFrame As IVsWindowFrame, ByRef pbstrData As String, ByRef ppunk As Object) As Integer

参数

ppWindowFrame
IVsWindowFrame

弄一个指针,指向包含向后和向前导航项的窗口的窗口框架。

pbstrData
String

弄导航点 (插入点) 所需的任意数据。

ppunk
Object

弄指向导航点的特定接口的指针。 这是传入的接口 AddNewBFNavigationItem(IVsWindowFrame, String, Object, Int32)

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell:

HRESULT IVsUIShell::GetCurrentBFNavigationItem(  
   [out] IVsWindowFrame **ppWindowFrame,  
   [out] BSTR * pbstrData,  
   [out] IUnknown **ppunk  
);  

如果要在窗口中提供向后和向前导航点,请实现 IVsBackForwardNavigation 。 核心文本编辑器使用文本标记来标识环境中的导航点。

适用于