共用方式為


SPCapabilityChecker.CheckUsageRightForCurrentUser method

檢查使用者授權,並取得授權的服務或其目前的使用者沒有的功能的顯示名稱。如果使用者有所有的服務或功能的這項功能的使用授權,則傳回空的清單。

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

Syntax

'宣告
Public Overridable Function CheckUsageRightForCurrentUser ( _
    hostWeb As SPWeb _
) As IEnumerable(Of String)
'用途
Dim instance As SPCapabilityChecker
Dim hostWeb As SPWeb
Dim returnValue As IEnumerable(Of String)

returnValue = instance.CheckUsageRightForCurrentUser(hostWeb)
public virtual IEnumerable<string> CheckUsageRightForCurrentUser(
    SPWeb hostWeb
)

參數

傳回值

Type: System.Collections.Generic.IEnumerable<String>
目前的使用者沒有授權的功能顯示名稱。

請參閱

參照

SPCapabilityChecker class

SPCapabilityChecker members

Microsoft.SharePoint namespace