IVsUIShell.GetCurrentBFNavigationItem(IVsWindowFrame, String, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回当前的向后和向前导航项。
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) 。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsUIShell::GetCurrentBFNavigationItem(
[out] IVsWindowFrame **ppWindowFrame,
[out] BSTR * pbstrData,
[out] IUnknown **ppunk
);
如果要在窗口中提供向后和向前导航点,请实现 IVsBackForwardNavigation 。 核心文本编辑器使用文本标记来标识环境中的导航点。