SPService.IsUserLicensedForEntity method

SharePoint 2013

Checks if the current user has the proper license to access the specified entity.

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

public bool IsUserLicensedForEntity(
	string licensableEntity
)

Parameters

licensableEntity
Type: System.String

The entity requesting the license check.

Return value

Type: System.Boolean
true if the user has the proper license or licensing is disabled; otherwise false.
Show: