SPContextPageInfo.BasePermissions Property
Gets the current user’s permissions on the page.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Property BasePermissions As Nullable(Of SPBasePermissions)
Get
Friend Set
'Usage
Dim instance As SPContextPageInfo
Dim value As Nullable(Of SPBasePermissions)
value = instance.BasePermissions
public Nullable<SPBasePermissions> BasePermissions { get; internal set; }
Property Value
Type: System.Nullable<SPBasePermissions>
A bitwise combination of enumeration values representing the user’s permissions; or a null reference (Nothing in Visual Basic) if permissions information is not available.
Remarks
You can access the HasValue property to determine if the BasePermissions property has a value.