C-DEngine 5.105

Ext..::..IsUpgradeTo Method

Determines whether the specified HttpListenerRequest is an HTTP Upgrade request to switch to the specified protocol.

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

Syntax


public static bool IsUpgradeTo(
	HttpListenerRequest request,
	string protocol
)
Public Shared Function IsUpgradeTo ( _
	request As HttpListenerRequest, _
	protocol As String _
) As Boolean
public:
static bool^ IsUpgradeTo(
	HttpListenerRequest^ request, 
	String^ protocol
)

Parameters

request
Type: WebSocketSharp.Net..::..HttpListenerRequest
A HttpListenerRequest that represents the HTTP request.
protocol
Type: String
A String that represents the protocol name.

Return Value

true if request is an HTTP Upgrade request to switch to protocol; otherwise, false.

Exceptions


ExceptionCondition
ArgumentNullException

request is nullNothingnullptra null reference (Nothing in Visual Basic).

-or-

protocol is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentExceptionprotocol is empty.