SPUtility.IsUserLicensedForEntityInContext method
會檢查目前登入的使用者是否有適當的授權,才能存取指定的實體。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsUserLicensedForEntityInContext ( _
licensableEntity As String _
) As Boolean
'用途
Dim licensableEntity As String
Dim returnValue As Boolean
returnValue = SPUtility.IsUserLicensedForEntityInContext(licensableEntity)
public static bool IsUserLicensedForEntityInContext(
string licensableEntity
)
參數
licensableEntity
Type: System.String要求授權] 核取實體。
傳回值
Type: System.Boolean
如果使用者具有適當的授權或授權已停用,則為 true。False 否則。