Partilhar via


SPRoleAssignment.Member Property

Gets the user or group for the role assignment.

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

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableConstraintAttribute(FixedId := "identifier", Type := ClientCallableConstraintType.Custom,  _
    Value := "The identifier of the user or group MUST be greater than zero. ")> _
<ClientCallableAttribute> _
Public ReadOnly Property Member As SPPrincipal
    Get
'Usage
Dim instance As SPRoleAssignment
Dim value As SPPrincipal

value = instance.Member
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableConstraintAttribute(FixedId = "identifier", Type = ClientCallableConstraintType.Custom, 
    Value = "The identifier of the user or group MUST be greater than zero. ")]
[ClientCallableAttribute]
public SPPrincipal Member { get; }

Property Value

Type: Microsoft.SharePoint.SPPrincipal
An SPPrincipal object that represents the user or group.

See Also

Reference

SPRoleAssignment Class

SPRoleAssignment Members

Microsoft.SharePoint Namespace