SPItemKey.Equals method

Determines whether the specified Object is equal to the current SPItemKey object.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function Equals ( _
    rhs As Object _
) As Boolean
'Usage
Dim instance As SPItemKey
Dim rhs As Object
Dim returnValue As Boolean

returnValue = instance.Equals(rhs)
public override bool Equals(
    Object rhs
)

Parameters

  • rhs
    Type: System.Object

    An object to compare to the current SPItemKey object.

Return value

Type: System.Boolean
true if rhs is equal to the current object; otherwise, false.

Remarks

This override determines whether the rhs is equal to the current SPItemKey object.

If rhs is a SPItemKey object and the values of Id property and Key property are equal, both the rhs and the SPItemKey object are empty, rhs is a string and is equal to the value of the Key property, or rhs is an integer and is equal to the value of the Id property, this override returns true; otherwise, false.

See also

Reference

SPItemKey class

SPItemKey members

Microsoft.SharePoint.Workflow namespace