Share via


SignalRRouteExtensions.MapConnection Method (RouteCollection, String, String, Type, ConnectionConfiguration)

.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 ( _
    routes As RouteCollection, _
    name As String, _
    url As String, _
    type As Type, _
    configuration As ConnectionConfiguration _
) As RouteBase
'Usage
Dim routes As RouteCollection 
Dim name As String 
Dim url As String 
Dim type As Type 
Dim configuration As ConnectionConfiguration 
Dim returnValue As RouteBase 

returnValue = routes.MapConnection(name, _
    url, type, configuration)
public static RouteBase MapConnection(
    this RouteCollection routes,
    string name,
    string url,
    Type type,
    ConnectionConfiguration configuration
)
[ExtensionAttribute]
public:
static RouteBase^ MapConnection(
    RouteCollection^ routes, 
    String^ name, 
    String^ url, 
    Type^ type, 
    ConnectionConfiguration^ configuration
)
static member MapConnection : 
        routes:RouteCollection * 
        name:string * 
        url:string * 
        type:Type * 
        configuration:ConnectionConfiguration -> RouteBase
public static function MapConnection(
    routes : RouteCollection, 
    name : String, 
    url : String, 
    type : Type, 
    configuration : ConnectionConfiguration
) : RouteBase

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