SPService.IsUserLicensedForEntity method
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)
Syntax
'Declaration
Public Function IsUserLicensedForEntity ( _
licensableEntity As String _
) As Boolean
'Usage
Dim instance As SPService
Dim licensableEntity As String
Dim returnValue As Boolean
returnValue = instance.IsUserLicensedForEntity(licensableEntity)
public bool IsUserLicensedForEntity(
string licensableEntity
)
Parameters
licensableEntity
Type: System.StringThe entity requesting the license check.
Return value
Type: System.Boolean
true if the user has the proper license or licensing is disabled; otherwise false.