SPUtility.GetRequestAccess-Methode

HINWEIS: Diese API ist veraltet.

Gibt einen booleschen Wert, der angibt, ob der aktuelle Benutzer Zugriff auf die angegebene Site oder Liste.

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

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
)

Parameter

Rückgabewert

Typ: System.Boolean
true , wenn der Benutzer Zugriff auf die Website oder Liste hat; andernfalls false.

Siehe auch

Referenz

SPUtility Klasse

SPUtility-Member

Microsoft.SharePoint.Utilities-Namespace