C-DEngine 5.105

HttpListenerPrefixCollection..::..Add Method

Adds the specified uriPrefix to the collection.

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void Add(
	string uriPrefix
)
Public Sub Add ( _
	uriPrefix As String _
)
public:
void Add(
	String^ uriPrefix
)

Parameters

uriPrefix
Type: String
A String that represents the URI prefix to add. The prefix must be a well-formed URI prefix with http or https scheme, and must end with a '/'.

Exceptions


ExceptionCondition
ArgumentNullExceptionuriPrefix is nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentExceptionuriPrefix is invalid.
ObjectDisposedException The HttpListener associated with this collection is closed.