Hub.OnConnected Method
.NET Framework 4
Called 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
A Task.