다음을 통해 공유


SPUtility.GetRequestAccess Method

NOTE: This API is now obsolete.

Returns a Boolean value that indicates whether the current user has access to the specified site or list.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use the SPWeb.RequestAccessEnabled and SPList.RequestAccessEnabled instead")> _
Public Shared Function GetRequestAccess ( _
    web As SPWeb, _
    objType As SPObjectType, _
    objID As String _
) As Boolean
'Usage
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
)

Parameters

Return Value

Type: System.Boolean
true if the user has access to the site or list; otherwise, false.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace