Share via


SPRoleAssignmentCollection.Parent Property

NOTE: This API is now obsolete.

Gets the parent object that controls the permissions for the object to which the role assignments apply.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
<ObsoleteAttribute("Use ParentSecurableObject instead")> _
Public ReadOnly Property Parent As ISecurableObject
    Get
'Usage
Dim instance As SPRoleAssignmentCollection
Dim value As ISecurableObject

value = instance.Parent
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
[ObsoleteAttribute("Use ParentSecurableObject instead")]
public ISecurableObject Parent { get; }

Property Value

Type: Microsoft.SharePoint.ISecurableObject
The parent object.

Remarks

The Parent property can return an SPWeb, SPList, or SPListItem object.

See Also

Reference

SPRoleAssignmentCollection Class

SPRoleAssignmentCollection Members

Microsoft.SharePoint Namespace