Share via


SPContextPageInfo.BasePermissions property

Gets the current user’s permissions on the page.

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

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.

See also

Reference

SPContextPageInfo class

SPContextPageInfo members

Microsoft.SharePoint namespace