SPWeb.GetUserToken 方法
Retrieves the user token for the specified user.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function GetUserToken ( _
userName As String _
) As SPUserToken
用法
Dim instance As SPWeb
Dim userName As String
Dim returnValue As SPUserToken
returnValue = instance.GetUserToken(userName)
public SPUserToken GetUserToken(
string userName
)
参数
userName
类型:System.StringA string that contains the value of the LoginName property for an SPUser object.
返回值
类型:Microsoft.SharePoint.SPUserToken
The token for the specified user.
备注
The current user must have SPBasePermissions.EnumeratePermissions.