SPTenantAdmin.CheckTenantLicenses method

Checks whether a tenant has the specified licenses.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function CheckTenantLicenses ( _
    siteSubscription As SPSiteSubscription, _
    ParamArray licenses As String() _
) As Boolean
'Usage
Dim siteSubscription As SPSiteSubscription
Dim licenses As String()
Dim returnValue As Boolean

returnValue = SPTenantAdmin.CheckTenantLicenses(siteSubscription, _
    licenses)
public static bool CheckTenantLicenses(
    SPSiteSubscription siteSubscription,
    params string[] licenses
)

Parameters

  • licenses
    Type: []

    The list of licenses to check for.

Return value

Type: System.Boolean
true if the tenant has all the licenses specified in the licenses parameter, otherwise false.

See also

Reference

SPTenantAdmin class

SPTenantAdmin members

Microsoft.SharePoint namespace