다음을 통해 공유


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

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