Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpContext::AcceptWebSocketRequest Method (Func<AspNetWebSocketContext^, Task^>^, AspNetWebSocketOptions^)

.NET Framework (current version)
 

Accepts an AspNetWebSocket request using the specified user function and options object.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
void AcceptWebSocketRequest(
	Func<AspNetWebSocketContext^, Task^>^ userFunc,
	AspNetWebSocketOptions^ options
)

Parameters

userFunc
Type: System::Func<AspNetWebSocketContext^, Task^>^

The user function.

options
Type: System.Web.WebSockets::AspNetWebSocketOptions^

The options object.

Exception Condition
ArgumentNullException

The userFunc parameter is null.

NotSupportedException

The request is not an AspNetWebSocket request.

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft