Share via


SPPolicyRoleCollection.Delete method (String)

Deletes the policy role with the specified name.

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

Syntax

'Declaration
Public Sub Delete ( _
    name As String _
)
'Usage
Dim instance As SPPolicyRoleCollection
Dim name As String

instance.Delete(name)
public void Delete(
    string name
)

Parameters

  • name
    Type: System.String

    A string that contains the name 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