Share via


SPAlternateUrlCollection.Delete method (Int32)

Deletes the URL at the specified index from the collection.

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

Syntax

'Declaration
Public Sub Delete ( _
    index As Integer _
)
'Usage
Dim instance As SPAlternateUrlCollection
Dim index As Integer

instance.Delete(index)
public void Delete(
    int index
)

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the URL to delete.

Remarks

If the URL specified through index is currently used for a response URL, the response URL for that zone is reset to a null reference (Nothing in Visual Basic). If the URL is the response URL for the Default zone in this collection, you cannot delete it unless no other resources in the farm have a dependency on this collection. 

See also

Reference

SPAlternateUrlCollection class

SPAlternateUrlCollection members

Delete overload

Microsoft.SharePoint.Administration namespace