SPWeb.AllRolesForCurrentUser Property

Gets the collection of role definitions for the roles to which the current user is assigned.

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

Syntax

Public ReadOnly Property AllRolesForCurrentUser As SPRoleDefinitionBindingCollection
    Get

Dim instance As SPWeb
Dim value As SPRoleDefinitionBindingCollection

value = instance.AllRolesForCurrentUser
public SPRoleDefinitionBindingCollection AllRolesForCurrentUser { get; }

Property Value

Type: Microsoft.SharePoint.SPRoleDefinitionBindingCollection
An SPRoleDefinitionBindingCollection object that represents the role definitions for the current user.

Implements

ISecurableObject.AllRolesForCurrentUser

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace