IHubProxy.Subscribe Method
.NET Framework 4
Registers an event for the hub.
Namespace: Microsoft.AspNet.SignalR.Client.Hubs
Assembly: Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
Syntax
'Declaration
Function Subscribe ( _
eventName As String _
) As Subscription
'Usage
Dim instance As IHubProxy
Dim eventName As String
Dim returnValue As Subscription
returnValue = instance.Subscribe(eventName)
Subscription Subscribe(
string eventName
)
Subscription^ Subscribe(
String^ eventName
)
abstract Subscribe :
eventName:string -> Subscription
function Subscribe(
eventName : String
) : Subscription
Parameters
- eventName
Type: System.String
The name of the event
Return Value
Type: Microsoft.AspNet.SignalR.Client.Hubs.Subscription
A Subscription .