SPChangeToken.Inequality Operator
Returns a Boolean value that indicates whether or not the two specified SPChangeToken objects are unequal.
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
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 not equal; otherwise, false.
Remarks
This method implements the inequality operator. To call the method, simply use the operator with two SPChangeToken objects, as shown in the following example.
SPChangeToken x = oWeb.CurrentChangeToken;
SPChangeToken y = oSite.CurrentChangeToken;
Console.WriteLine(x != y); // True
Dim x As SPChangeToken = oWeb.CurrentChangeToken
Dim y As SPChangeToken = oSite.CurrentChangeToken
Console.WriteLine(x <> y) ' True