SignalRRouteExtensions.MapHubs Method (RouteCollection)
.NET Framework 4.5
Initializes the default hub route (/signalr).
Namespace: System.Web.Routing
Assembly: Microsoft.AspNet.SignalR.SystemWeb (in Microsoft.AspNet.SignalR.SystemWeb.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function MapHubs ( _
routes As RouteCollection _
) As RouteBase
'Usage
Dim routes As RouteCollection
Dim returnValue As RouteBase
returnValue = routes.MapHubs()
public static RouteBase MapHubs(
this RouteCollection routes
)
[ExtensionAttribute]
public:
static RouteBase^ MapHubs(
RouteCollection^ routes
)
static member MapHubs :
routes:RouteCollection -> RouteBase
public static function MapHubs(
routes : RouteCollection
) : RouteBase
Parameters
- routes
Type: System.Web.Routing.RouteCollection
The route table.
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).