Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsUserLicensedForEntityInContext method
Collapse the table of content
Expand the table of content

SPUtility.IsUserLicensedForEntityInContext method

SharePoint 2013

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)

public static bool IsUserLicensedForEntityInContext(
	string 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. False otherwise.
© 2015 Microsoft