次の方法で共有


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

    The entity requesting the license check.

Return value

Type: System.Boolean
true if the user has the proper license or licensing is disabled; otherwise false.

See also

Reference

SPService class

SPService members

Microsoft.SharePoint.Administration namespace