RoleAssignmentCollection.GetByPrincipal Method
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
public RoleAssignment GetByPrincipal(
Principal principalToFind
)
Parameters
- principalToFind
Type: Microsoft.SharePoint.Client.Principal
Return Value
Type: Microsoft.SharePoint.Client.RoleAssignment
Returns RoleAssignment.
See Also
Reference
RoleAssignmentCollection Class