다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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

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

See Also

Reference

SPChangeToken Class

SPChangeToken Members

Microsoft.SharePoint Namespace

Equals(Object)