Click or drag to resize

HttpListenerResponseRedirect Method

Configures the response to redirect the client's request to the specified url.

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public void Redirect(
	string url
)

Parameters

url
Type: SystemString
A String that represents the URL to redirect the client's request to.
Exceptions
ExceptionCondition
ArgumentNullExceptionurl is .
ArgumentExceptionurl isn't an absolute URL.
InvalidOperationException The response has already been sent.
ObjectDisposedException This object is closed.
Remarks
This method sets the RedirectLocation property to url, the StatusCode property to 302, and the StatusDescription property to "Found".
See Also