Share via


SPUserToken.CompareUser Method

Compares this user token with another specified user token.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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