SPCapabilityChecker.CheckUsageRightForCurrentTenant 方法

检查租户许可证,并返回许可证的服务或为其当前租户不具有的功能的显示名称。如果当前租户具有要使用所有服务或功能此功能的许可证,则返回一个空列表。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Overridable Function CheckUsageRightForCurrentTenant ( _
    hostWeb As SPWeb _
) As IEnumerable(Of String)
用法
Dim instance As SPCapabilityChecker
Dim hostWeb As SPWeb
Dim returnValue As IEnumerable(Of String)

returnValue = instance.CheckUsageRightForCurrentTenant(hostWeb)
public virtual IEnumerable<string> CheckUsageRightForCurrentTenant(
    SPWeb hostWeb
)

参数

返回值

类型:System.Collections.Generic.IEnumerable<String>
显示名称的当前租户不具有许可证的功能。

另请参阅

引用

SPCapabilityChecker 类

SPCapabilityChecker 成员

Microsoft.SharePoint 命名空间