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
Remarks
After implementing this method, you must add a new URL to the collection before calling the Update method.
See also
Reference
SPAlternateUrlCollection class