Share via


SPAlternateUrlCollection.Delete Method (String)

Deletes the specified URL from the collection.

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

Syntax

'Declaration
Public Sub Delete ( _
    incomingUrl As String _
)
'Usage
Dim instance As SPAlternateUrlCollection
Dim incomingUrl As String

instance.Delete(incomingUrl)
public void Delete(
    string incomingUrl
)

Parameters

  • incomingUrl
    Type: System.String

    A string that contains the URL to delete.

Remarks

If the URL specified through incomingUrl 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