共用方式為


SPAlternateUrlCollection.Delete method (Int32)

從集合中刪除的指定索引處的 URL。

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

Syntax

'宣告
Public Sub Delete ( _
    index As Integer _
)
'用途
Dim instance As SPAlternateUrlCollection
Dim index As Integer

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

參數

  • index
    Type: System.Int32

    32 位元整數,會指定要刪除的 URL。

備註

如果目前的回應 URL 使用index透過指定的 URL,則該區域的回應 URL 會重設為a null reference (Nothing in Visual Basic)。如果 URL 回應程式區域的 URL Default此集合中,您無法刪除它,除非沒有在伺服器陣列中的其他資源在此集合上有相依性。

請參閱

參照

SPAlternateUrlCollection class

SPAlternateUrlCollection members

Delete overload

Microsoft.SharePoint.Administration namespace