Share via


SPUserToken.CompareUser method

Compares this user token with another specified user token.

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

Syntax

'Declaration
Public Function CompareUser ( _
    userTokenCheck As SPUserToken _
) As Boolean
'Usage
Dim instance As SPUserToken
Dim userTokenCheck As SPUserToken
Dim returnValue As Boolean

returnValue = instance.CompareUser(userTokenCheck)
public bool CompareUser(
    SPUserToken userTokenCheck
)

Parameters

Return value

Type: System.Boolean
true if the user tokens are the same; otherwise, false.

See also

Reference

SPUserToken class

SPUserToken members

Microsoft.SharePoint namespace