共用方式為


SPUtility.GetRequestAccess method

NOTE: This API is now obsolete.

會傳回 Boolean 值,指出目前的使用者是否有指定的網站或清單的存取權。

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

Syntax

'宣告
<ObsoleteAttribute("Use the SPWeb.RequestAccessEnabled and SPList.RequestAccessEnabled instead")> _
Public Shared Function GetRequestAccess ( _
    web As SPWeb, _
    objType As SPObjectType, _
    objID As String _
) As Boolean
'用途
Dim web As SPWeb
Dim objType As SPObjectType
Dim objID As String
Dim returnValue As Boolean

returnValue = SPUtility.GetRequestAccess(web, _
    objType, objID)
[ObsoleteAttribute("Use the SPWeb.RequestAccessEnabled and SPList.RequestAccessEnabled instead")]
public static bool GetRequestAccess(
    SPWeb web,
    SPObjectType objType,
    string objID
)

參數

傳回值

Type: System.Boolean
true若使用者擁有存取權的網站或清單 ;否則,請false。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace