SPPrefixCollection.Delete method (String)
Deletes the specified prefix from the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
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.StringA 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.