IVsBackForwardNavigation.IsEqual 方法

确定当前导航点是否是文档的当前位置。,如果是这样,则返回 true。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function IsEqual ( _
    pFrame As IVsWindowFrame, _
    bstrData As String, _
    punk As Object, _
    <OutAttribute> ByRef fReplaceSelf As Integer _
) As Integer
int IsEqual(
    IVsWindowFrame pFrame,
    string bstrData,
    Object punk,
    out int fReplaceSelf
)

参数

  • bstrData
    类型:System.String
    [in] 可选。字符串匹配的确定当前位置的标识和中的导航点。
  • punk
    类型:System.Object
    [in] 对提供检索该导航点接口的对象的 IUnknown 的指针。
  • fReplaceSelf
    类型:System.Int32%
    [out] 布尔值指示是否 (true) 当前导航点需要替换自身。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsBackForwardNavigation::IsEqual(
   [in] IVsWindowFrame *pFrame, 
   [in] BSTR bstrData, 
   [in] IUnknown *punk, 
   [out, retval] BOOL *fReplaceSelf
);

.NET Framework 安全性

请参见

参考

IVsBackForwardNavigation 接口

Microsoft.VisualStudio.Shell.Interop 命名空间