HttpListenerPrefixCollection.Remove(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified Uniform Resource Identifier (URI) from the list of prefixes handled by the HttpListener object.
public:
virtual bool Remove(System::String ^ uriPrefix);
public bool Remove (string uriPrefix);
abstract member Remove : string -> bool
override this.Remove : string -> bool
Public Function Remove (uriPrefix As String) As Boolean
Parameters
Returns
true
if the uriPrefix
was found in the HttpListenerPrefixCollection and removed; otherwise false
.
Implements
Exceptions
uriPrefix
is null
.
A Windows function call failed. To determine the cause of the exception, check the exception's error code.
The HttpListener associated with this collection is closed.
Remarks
If uriPrefix
is not in the collection, this method does nothing.
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.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για