Redigera

Dela via


HttpListenerPrefixCollection.Remove(String) Method

Definition

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

uriPrefix
String

A String that contains the URI prefix to remove.

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