SPWeb.GetUserEffectivePermissionInfo 方法
Gets the effective permissions that the specified user has and the role assignments related to this user within this scope.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overrides Function GetUserEffectivePermissionInfo ( _
userName As String _
) As SPPermissionInfo
用法
Dim instance As SPWeb
Dim userName As String
Dim returnValue As SPPermissionInfo
returnValue = instance.GetUserEffectivePermissionInfo(userName)
public override SPPermissionInfo GetUserEffectivePermissionInfo(
string userName
)
参数
userName
类型:System.StringThe user associated with the returned permissions information.
返回值
类型:Microsoft.SharePoint.SPPermissionInfo
The permissions associated with the given user.
异常
异常 | 条件 |
---|---|
UnauthorizedAccessException | The user does not have permission to enumerate permissions. |