Share via


PolicyCollection.Delete Method

Deletes the specified information policy from the specified site collection.

Namespace:  Microsoft.Office.RecordsManagement.InformationPolicy
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
Public Shared Sub Delete ( _
    site As SPSite, _
    Id As String _
)
'Usage
Dim site As SPSite
Dim Id As StringPolicyCollection.Delete(site, Id)
public static void Delete(
    SPSite site,
    string Id
)

Parameters

Remarks

This method raises an exception if the policy is currently applied to items in the site collection.

Use the Id property of the Policy object to return the policy's ID.

See Also

Reference

PolicyCollection Class

PolicyCollection Members

Microsoft.Office.RecordsManagement.InformationPolicy Namespace