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