Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks if the currently logged in user has the proper license to access the specified entity.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function IsUserLicensedForEntityInContext ( _
licensableEntity As String _
) As Boolean
'Usage
Dim licensableEntity As String
Dim returnValue As Boolean
returnValue = SPUtility.IsUserLicensedForEntityInContext(licensableEntity)
public static bool IsUserLicensedForEntityInContext(
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. False otherwise.