HubConnection Constructor (String, Boolean)
.NET Framework 4
Initializes a new instance of the HubConnection class.
Namespace: Microsoft.AspNet.SignalR.Client.Hubs
Assembly: Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
Syntax
'Declaration
Public Sub New ( _
url As String, _
useDefaultUrl As Boolean _
)
'Usage
Dim url As String
Dim useDefaultUrl As Boolean
Dim instance As New HubConnection(url, useDefaultUrl)
public HubConnection(
string url,
bool useDefaultUrl
)
public:
HubConnection(
String^ url,
bool useDefaultUrl
)
new :
url:string *
useDefaultUrl:bool -> HubConnection
public function HubConnection(
url : String,
useDefaultUrl : boolean
)
Parameters
- url
Type: System.String
The url to connect to.
- useDefaultUrl
Type: System.Boolean
Determines if the default "/signalr" path should be appended to the specified url.