SPRoleAssignment.Parent Property

Gets the parent object for the role assignment.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public ReadOnly Property Parent As ISecurableObject
    Get
'Usage
Dim instance As SPRoleAssignment
Dim value As ISecurableObject

value = instance.Parent
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public ISecurableObject Parent { get; }

Property Value

Type: Microsoft.SharePoint.ISecurableObject
An ISecurable interface that represents the parent object.

Remarks

The parent object is a null reference (Nothing in Visual Basic) until the role assignment is added to the collection.

See Also

Reference

SPRoleAssignment Class

SPRoleAssignment Members

Microsoft.SharePoint Namespace