Freigeben über


RoleAssignmentCollection.GetByPrincipal-Methode

Ruft RoleAssignment Objekts basierend auf dem angegebenen Benutzer oder der Gruppe an.

Namespace:  Microsoft.SharePoint.Client
Assemblys:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  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
)

Parameter

Rückgabewert

Typ: Microsoft.SharePoint.Client.RoleAssignment
Gibt RoleAssignmentan.

Hinweise

Es muss sich nicht auf ein Nullverweis (Nothing in Visual Basic).

Siehe auch

Referenz

RoleAssignmentCollection Klasse

RoleAssignmentCollection-Member

Microsoft.SharePoint.Client-Namespace