Share via


Hub.OnConnected Method

.NET Framework 4.5

Occurs when the connection connects to this hub instance.

Namespace:  Microsoft.AspNet.SignalR
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public Overridable Function OnConnected As Task
'Usage
Dim instance As Hub 
Dim returnValue As Task 

returnValue = instance.OnConnected()
public virtual Task OnConnected()
public:
virtual Task^ OnConnected()
abstract OnConnected : unit -> Task  
override OnConnected : unit -> Task
public function OnConnected() : Task

Return Value

Type: System.Threading.Tasks.Task
The result of the operation.

Implements

IHub.OnConnected()

See Also

Reference

Hub Class

Microsoft.AspNet.SignalR Namespace