共用方式為


SPPolicyRoleCollection.DeleteById Method

Deletes the policy role with the specified ID.

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

Syntax

'Declaration
Public Sub DeleteById ( _
    id As Guid _
)
'Usage
Dim instance As SPPolicyRoleCollection
Dim id As Guid

instance.DeleteById(id)
public void DeleteById(
    Guid id
)

Parameters

  • id
    Type: System.Guid

    A System.Guid that specifies the GUID of the policy role.

See Also

Reference

SPPolicyRoleCollection Class

SPPolicyRoleCollection Members

Microsoft.SharePoint.Administration Namespace