Share via


Hub.Context Property

.NET Framework 4

Provides information about the calling client.

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

Syntax

'Declaration
Public Property Context As HubCallerContext 
    Get 
    Set
'Usage
Dim instance As Hub 
Dim value As HubCallerContext 

value = instance.Context

instance.Context = value
public HubCallerContext Context { get; set; }
public:
virtual property HubCallerContext^ Context {
    HubCallerContext^ get () sealed;
    void set (HubCallerContext^ value) sealed;
}
abstract Context : HubCallerContext with get, set 
override Context : HubCallerContext with get, set
final function get Context () : HubCallerContext 
final function set Context (value : HubCallerContext)

Property Value

Type: Microsoft.AspNet.SignalR.Hubs.HubCallerContext
Returns HubCallerContext.

Implements

IHub.Context

See Also

Reference

Hub Class

Microsoft.AspNet.SignalR Namespace