共用方式為


SPService.IsUserLicensedForEntity method

會檢查目前使用者是否有適當的授權,才能存取指定的實體。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function IsUserLicensedForEntity ( _
    licensableEntity As String _
) As Boolean
'用途
Dim instance As SPService
Dim licensableEntity As String
Dim returnValue As Boolean

returnValue = instance.IsUserLicensedForEntity(licensableEntity)
public bool IsUserLicensedForEntity(
    string licensableEntity
)

參數

  • licensableEntity
    Type: System.String

    要求授權] 核取實體。

傳回值

Type: System.Boolean
true若使用者具有適當的授權或已停用授權 ;否則false。

請參閱

參照

SPService class

SPService members

Microsoft.SharePoint.Administration namespace