Share via


SignalRRouteExtensions.MapConnection<T> Method (RouteCollection, String, String)

.NET Framework 4.5

Maps a PersistentConnection with the default dependency resolver to the specified path.

Namespace:  System.Web.Routing
Assembly:  Microsoft.AspNet.SignalR.SystemWeb (in Microsoft.AspNet.SignalR.SystemWeb.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function MapConnection(Of T As PersistentConnection) ( _
    routes As RouteCollection, _
    name As String, _
    url As String _
) As RouteBase
'Usage
Dim routes As RouteCollection 
Dim name As String 
Dim url As String 
Dim returnValue As RouteBase 

returnValue = routes.MapConnection(name, _
    url)
public static RouteBase MapConnection<T>(
    this RouteCollection routes,
    string name,
    string url
)
where T : PersistentConnection
[ExtensionAttribute]
public:
generic<typename T>
where T : PersistentConnection 
static RouteBase^ MapConnection(
    RouteCollection^ routes, 
    String^ name, 
    String^ url
)
static member MapConnection : 
        routes:RouteCollection * 
        name:string * 
        url:string -> RouteBase   when 'T : PersistentConnection
JScript does not support generic types and methods.

Type Parameters

Parameters

Return Value

Type: System.Web.Routing.RouteBase
The registered route.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RouteCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

SignalRRouteExtensions Class

MapConnection Overload

System.Web.Routing Namespace