HttpListenerPrefixCollection.Clear Method ()
Removes all the Uniform Resource Identifier (URI) prefixes from the collection.
Assembly: System (in System.dll)
After calling this method, you cannot start the associated HttpListener without adding new prefixes; if you try to do so, an exception is thrown.
Notes to Callers:
This member outputs trace information when you enable network tracing in your application. For more information, see Network Tracing in the .NET Framework.
The following code example removes all prefixes in an HttpListenerPrefixCollection.
Available since 2.0