SPPrefixCollection.Delete Method (String)

Deletes the specified prefix from the collection.

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

Syntax

'Declaration
Public Sub Delete ( _
    strPrefix As String _
)
'Usage
Dim instance As SPPrefixCollection
Dim strPrefix As String

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

Parameters

  • strPrefix
    Type: System.String

    A string that contains the prefix. This is a server-relative URL path.

Remarks

In a hostheader prefix collection, the explicit root inclusion must not be removed. If it is, an ArgumentOutOfRangeException will be thrown.

See Also

Reference

SPPrefixCollection Class

SPPrefixCollection Members

Delete Overload

Microsoft.SharePoint.Administration Namespace