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
userTokenCheck
Type: Microsoft.SharePoint.SPUserTokenA SPUserToken object representing the other user token object against which to compare the user token.
Return Value
Type: System.Boolean
true if the user tokens are the same; otherwise, false.