Share via


SPAlternateUrlCollection.Clear method

Removes all URLs from the collection, leaving the collection in an invalid state.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Sub Clear
'Usage
Dim instance As SPAlternateUrlCollection

instance.Clear()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public void Clear()

Implements

ICollection<T>.Clear()

Remarks

After implementing this method, you must add a new URL to the collection before calling the Update method.

See also

Reference

SPAlternateUrlCollection class

SPAlternateUrlCollection members

Microsoft.SharePoint.Administration namespace