다음을 통해 공유


SPAlternateUrlCollection.Delete Method

Deletes the entire collection of alternate URLs and clears local caches.

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

Syntax

'Declaration
Public Overrides Sub Delete
'Usage
Dim instance As SPAlternateUrlCollection

instance.Delete()
public override void Delete()

Remarks

This override of the Delete method is different from the other Delete method overrides and the Clear method. This method removes the SPAlternateUrlCollection from the SPAlternateUrlCollectionManager.

You can call this Delete method only when no other resources in the farm have a dependency on this collection. If this collection is associated with a Web application, then this collection is deleted when you delete the Web application. 

See Also

Reference

SPAlternateUrlCollection Class

SPAlternateUrlCollection Members

Delete Overload

Microsoft.SharePoint.Administration Namespace