Export (0) Print
Expand All
Expand Minimize

SPUtility.GetRequestAccess Method

Windows SharePoint Services 3

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)

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

Parameters

web
Type: Microsoft.SharePoint.SPWeb
A Microsoft.SharePoint.SPWeb object that represents the site.
objType
Type: Microsoft.SharePoint.SPObjectType
A Microsoft.SharePoint.SPObjectType value that specifies whether the object is a list or a site.
objID
Type: System.String
The ID of the list or site.

Return Value

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

Community Additions

ADD
Show:
© 2014 Microsoft