共用方式為


SPPolicyRoleCollection.Delete Method (String)

Deletes the policy role with the specified name.

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

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