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
)

参数

返回值

类型:Microsoft.SharePoint.SPUserToken
The token for the specified user.

备注

The current user must have SPBasePermissions.EnumeratePermissions.

另请参阅

引用

SPWeb 类

SPWeb 成员

Microsoft.SharePoint 命名空间

SPBasePermissions