SPAppPermissionProvider.CheckUsageRightForCurrentUser 方法
获取未授权使用权限请求范围取决于的功能,但用户的显示名称。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Protected Overridable Function CheckUsageRightForCurrentUser ( _
permissionRequestScope As Uri, _
hostWeb As SPWeb _
) As IEnumerable(Of String)
用法
Dim permissionRequestScope As Uri
Dim hostWeb As SPWeb
Dim returnValue As IEnumerable(Of String)
returnValue = Me.CheckUsageRightForCurrentUser(permissionRequestScope, _
hostWeb)
protected virtual IEnumerable<string> CheckUsageRightForCurrentUser(
Uri permissionRequestScope,
SPWeb hostWeb
)
参数
- permissionRequestScope
类型:System.Uri
- hostWeb
类型:Microsoft.SharePoint.SPWeb
返回值
类型:System.Collections.Generic.IEnumerable<String>
备注
如果有任何未授权的服务依存关系,此方法应返回一个空枚举。