IVsBackForwardNavigation.IsEqual 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定当前导航点是否为文档中的当前位置。 如果是这种情况,则返回 true。
public:
int IsEqual(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ pFrame, System::String ^ bstrData, System::Object ^ punk, [Runtime::InteropServices::Out] int % fReplaceSelf);
int IsEqual(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame const & pFrame, std::wstring const & bstrData, winrt::Windows::Foundation::IInspectable const & punk, [Runtime::InteropServices::Out] int & fReplaceSelf);
public int IsEqual (Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame pFrame, string bstrData, object punk, out int fReplaceSelf);
abstract member IsEqual : Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame * string * obj * int -> int
Public Function IsEqual (pFrame As IVsWindowFrame, bstrData As String, punk As Object, ByRef fReplaceSelf As Integer) As Integer
参数
- pFrame
- IVsWindowFrame
中指向接口的指针 IVsWindowFrame 。
- bstrData
- String
[in] 可选。 要匹配的字符串,用于确定当前位置和导航点的标识。
- punk
- Object
中指向对象的的指针,该 IUnknown 对象提供用于检索导航点的接口。
- fReplaceSelf
- Int32
弄布尔值,指示当前导航点) 是否需要替换为 (true。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsBackForwardNavigation::IsEqual(
[in] IVsWindowFrame *pFrame,
[in] BSTR bstrData,
[in] IUnknown *punk,
[out, retval] BOOL *fReplaceSelf
);