检查用户许可证,并获取许可证的服务或功能不会不具有当前用户的显示名称。如果用户具有使用所有服务或功能此功能的许可证,则返回一个空列表。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overridable Function CheckUsageRightForCurrentUser ( _
hostWeb As SPWeb _
) As IEnumerable(Of String)
用法
Dim instance As SPCapabilityChecker
Dim hostWeb As SPWeb
Dim returnValue As IEnumerable(Of String)
returnValue = instance.CheckUsageRightForCurrentUser(hostWeb)
public virtual IEnumerable<string> CheckUsageRightForCurrentUser(
SPWeb hostWeb
)
参数
hostWeb
类型:Microsoft.SharePoint.SPWebWeb 应用程序的安装位置。
返回值
类型:System.Collections.Generic.IEnumerable<String>
当前用户不具有许可证的功能的显示名称。