Share via


HubProxy.Subscribe Method

.NET Framework 4

Namespace:  Microsoft.AspNet.SignalR.Client.Hubs
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

Syntax

'Declaration
Public Function Subscribe ( _
    eventName As String _
) As Subscription
'Usage
Dim instance As HubProxy 
Dim eventName As String 
Dim returnValue As Subscription 

returnValue = instance.Subscribe(eventName)
public Subscription Subscribe(
    string eventName
)
public:
virtual Subscription^ Subscribe(
    String^ eventName
) sealed
abstract Subscribe : 
        eventName:string -> Subscription  
override Subscribe : 
        eventName:string -> Subscription
public final function Subscribe(
    eventName : String
) : Subscription

Parameters

Return Value

Type: Microsoft.AspNet.SignalR.Client.Hubs.Subscription
Returns Subscription.

Implements

IHubProxy.Subscribe(String)

See Also

Reference

HubProxy Class

Microsoft.AspNet.SignalR.Client.Hubs Namespace