SPPolicyRoleCollection.Delete method (Int32)

Deletes the policy role at the specified index in the collection.

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

Syntax

'Declaration
Public Sub Delete ( _
    index As Integer _
)
'Usage
Dim instance As SPPolicyRoleCollection
Dim index As Integer

instance.Delete(index)
public void Delete(
    int index
)

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index of the policy role to delete.

Remarks

When a policy role is deleted, all policy bindings for that definition are also deleted.

See also

Reference

SPPolicyRoleCollection class

SPPolicyRoleCollection members

Delete overload

Microsoft.SharePoint.Administration namespace