共用方式為


SPPermissionInfo.Permissions Property

Gets the effective permissions for the user, including permissions from role assignments, permissions for anonymous user, permissions from security policy, and permissions from being a site collection administrationA bitwise combination of enumeration values that specifies a set of permissions.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Permissions As SPBasePermissions
    Get
'Usage
Dim instance As SPPermissionInfo
Dim value As SPBasePermissions

value = instance.Permissions
public SPBasePermissions Permissions { get; }

Property Value

Type: Microsoft.SharePoint.SPBasePermissions
A bitwise combination of enumeration values that specifies a set of permissions.

See Also

Reference

SPPermissionInfo Class

SPPermissionInfo Members

Microsoft.SharePoint Namespace