IVsBackForwardNavigation.NavigateTo(IVsWindowFrame, String, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将光标移动到特定点。
public:
int NavigateTo(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ pFrame, System::String ^ bstrData, System::Object ^ punk);
public:
int NavigateTo(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ pFrame, Platform::String ^ bstrData, Platform::Object ^ punk);
int NavigateTo(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame const & pFrame, std::wstring const & bstrData, winrt::Windows::Foundation::IInspectable const & punk);
public int NavigateTo (Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame pFrame, string bstrData, object punk);
abstract member NavigateTo : Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame * string * obj -> int
Public Function NavigateTo (pFrame As IVsWindowFrame, bstrData As String, punk As Object) As Integer
参数
- pFrame
- IVsWindowFrame
中指向接口的指针 IVsWindowFrame 。
- bstrData
- String
[in] 可选。 要匹配以确定导航起始点的字符串。
- punk
- Object
中指向 IUnknown 要从中检索导航点的接口的指针。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsBackForwardNavigation::NavigateTo(
[in] IVsWindowFrame *pFrame,
[in] BSTR bstrData,
[in] IUnknown *punk
);