Partager via


ConnectionManager.GetConnection Method

.NET Framework 4

Returns a IPersistentConnectionContext for the PersistentConnection.

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

Syntax

'Declaration
Public Function GetConnection ( _
    type As Type _
) As IPersistentConnectionContext
'Usage
Dim instance As ConnectionManager 
Dim type As Type 
Dim returnValue As IPersistentConnectionContext 

returnValue = instance.GetConnection(type)
public IPersistentConnectionContext GetConnection(
    Type type
)
public:
IPersistentConnectionContext^ GetConnection(
    Type^ type
)
member GetConnection : 
        type:Type -> IPersistentConnectionContext
public function GetConnection(
    type : Type
) : IPersistentConnectionContext

Parameters

Return Value

Type: Microsoft.AspNet.SignalR.IPersistentConnectionContext
A IPersistentConnectionContext for the PersistentConnection.

See Also

Reference

ConnectionManager Class

Microsoft.AspNet.SignalR.Infrastructure Namespace