次の方法で共有


SPUtility.IsUserLicensedForEntityInContext method

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.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.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace