共用方式為


SPPrefixCollection.Delete method (String)

從集合中刪除指定的前置字元。

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

Syntax

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

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

參數

  • strPrefix
    Type: System.String

    內含之字首的字串。這是伺服器相對 URL 路徑。

備註

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

請參閱

參照

SPPrefixCollection class

SPPrefixCollection members

Delete overload

Microsoft.SharePoint.Administration namespace