共用方式為


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

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace