次の方法で共有


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

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)