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
member
Type: Microsoft.SharePoint.SPMemberAn SPMember object that specifies the member.
Property value
Type: Microsoft.SharePoint.SPPermission
An SPPermission object that represents the permission.