SPWebApplication.IsUserLicensedForEntity method

Checks if the currently logged in 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 SPWebApplication
Dim licensableEntity As String
Dim returnValue As Boolean

returnValue = instance.IsUserLicensedForEntity(licensableEntity)
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 (default value); otherwise, false.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace