Share via


RoleAssignmentCollection.GetByPrincipal method

Retrieves the RoleAssignment object based on the specified user or group.

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

Syntax

'Declaration
Public Function GetByPrincipal ( _
    principalToFind As Principal _
) As RoleAssignment
'Usage
Dim instance As RoleAssignmentCollection
Dim principalToFind As Principal
Dim returnValue As RoleAssignment

returnValue = instance.GetByPrincipal(principalToFind)
public RoleAssignment GetByPrincipal(
    Principal principalToFind
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.RoleAssignment
Returns RoleAssignment.

Remarks

It must not be a null reference (Nothing in Visual Basic).

See also

Reference

RoleAssignmentCollection class

RoleAssignmentCollection members

Microsoft.SharePoint.Client namespace