IVsBackForwardNavigation.IsEqual Method

Determines if the current navigation point is the current location in the document. Returns true if this is the case.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function IsEqual ( _
    pFrame As IVsWindowFrame, _
    bstrData As String, _
    punk As Object, _
    <OutAttribute> ByRef fReplaceSelf As Integer _
) As Integer
'使用
Dim instance As IVsBackForwardNavigation
Dim pFrame As IVsWindowFrame
Dim bstrData As String
Dim punk As Object
Dim fReplaceSelf As Integer
Dim returnValue As Integer

returnValue = instance.IsEqual(pFrame, _
    bstrData, punk, fReplaceSelf)
int IsEqual(
    IVsWindowFrame pFrame,
    string bstrData,
    Object punk,
    out int fReplaceSelf
)
int IsEqual(
    [InAttribute] IVsWindowFrame^ pFrame, 
    [InAttribute] String^ bstrData, 
    [InAttribute] Object^ punk, 
    [OutAttribute] int% fReplaceSelf
)
function IsEqual(
    pFrame : IVsWindowFrame, 
    bstrData : String, 
    punk : Object, 
    fReplaceSelf : int
) : int

Parameters

  • bstrData
    Type: System.String

    [in] Optional. String to match to determine the identity of the current position and the navigation point.

  • punk
    Type: System.Object

    [in] Pointer to the IUnknown of the object providing the interface from which to retrieve the navigation points.

  • fReplaceSelf
    Type: System.Int32%

    [out] Boolean indicating whether (true) or not the current navigation point needs to replace itself.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

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

Permissions

See Also

Reference

IVsBackForwardNavigation Interface

IVsBackForwardNavigation Members

Microsoft.VisualStudio.Shell.Interop Namespace