共用方式為


SPPrefixCollection.Delete method (String[])

從集合中刪除指定的前置詞的陣列。

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

Syntax

'宣告
Public Sub Delete ( _
    strPrefixes As String() _
)
'用途
Dim instance As SPPrefixCollection
Dim strPrefixes As String()

instance.Delete(strPrefixes)
public void Delete(
    string[] strPrefixes
)

參數

  • strPrefixes
    Type: []

    字串陣列,包含要刪除的前置詞。這些是伺服器相對 URL 路徑。

備註

在 hostheader 前置詞集合中,必須不會移除明確根相對路徑。如果是,就會擲回ArgumentOutOfRangeException

請參閱

參照

SPPrefixCollection class

SPPrefixCollection members

Delete overload

Microsoft.SharePoint.Administration namespace