Share via


SPPermissionCollection.Item property (SPMember)

NOTE: This API is now obsolete.

Gets the permission object with the specified member from the collection. In C#, this property is an indexer for the SPPermissionCollection class.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use the SPRoleAssignmentCollection class instead")> _
Public ReadOnly Default Property Item ( _
    member As SPMember _
) As SPPermission
    Get
'Usage
Dim instance As SPPermissionCollection
Dim member As SPMember
Dim value As SPPermission

value = instance(member)
[ObsoleteAttribute("Use the SPRoleAssignmentCollection class instead")]
public SPPermission this[
    SPMember member
] { get; }

Parameters

Property value

Type: Microsoft.SharePoint.SPPermission
An SPPermission object that represents the permission.

See also

Reference

SPPermissionCollection class

SPPermissionCollection members

Item overload

Microsoft.SharePoint namespace