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
)
參數
web
Type: Microsoft.SharePoint.SPWebMicrosoft.SharePoint.SPWeb物件,代表該網站。
objType
Type: Microsoft.SharePoint.SPObjectType會指定物件為清單或站台Microsoft.SharePoint.SPObjectType值。
objID
Type: System.String清單或網站的識別碼。
傳回值
Type: System.Boolean
true若使用者擁有存取權的網站或清單 ;否則,請false。