Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the user token that is associated with the site collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public ReadOnly Property UserToken As SPUserToken
Get
'Usage
Dim instance As SPSite
Dim value As SPUserToken
value = instance.UserToken
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public SPUserToken UserToken { get; }
Property Value
Type: Microsoft.SharePoint.SPUserToken
An SPUserToken object that represents the token that identifies the authentication process that is applied to the current user. If the SPSite object was created with a specific SPUserToken object, that token is returned; otherwise, the token of the current user is returned.