SPChangeToken.Equality operator
Returns a Boolean value that indicates whether or not the two specified SPChangeToken objects are equal.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Operator = ( _
changeToken1 As SPChangeToken, _
changeToken2 As SPChangeToken _
) As Boolean
'Usage
Dim changeToken1 As SPChangeToken
Dim changeToken2 As SPChangeToken
Dim returnValue As Boolean
returnValue = (changeToken1 = changeToken2)
public static bool operator ==(
SPChangeToken changeToken1,
SPChangeToken changeToken2
)
Parameters
changeToken1
Type: Microsoft.SharePoint.SPChangeTokenThe first of the two SPChangeToken objects to compare.
changeToken2
Type: Microsoft.SharePoint.SPChangeTokenThe second of the two SPChangeToken objects to compare.
Return value
Type: System.Boolean
true if the two objects are equal; otherwise, false.
Remarks
This method implements the equality operator. To call the method, simply use the equality operator with two SPChangeToken objects, as shown in the following example.
SPChangeToken x = oWeb.CurrentChangeToken;
SPChangeToken y = x;
Console.WriteLine(x == y); // True
Dim x As SPChangeToken = oWeb.CurrentChangeToken
Dim y As SPChangeToken = x
Console.WriteLine(x = y) ' True