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。