Compartilhar 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)
Available in Sandboxed Solutions: No

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