Share via


HubConnection Constructor (String, String, Boolean)

.NET Framework 4.5

Initializes a new instance of the HubConnection class.

Namespace:  Microsoft.AspNet.SignalR.Client
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

Syntax

'Declaration
Public Sub New ( _
    url As String, _
    queryString As String, _
    useDefaultUrl As Boolean _
)
'Usage
Dim url As String 
Dim queryString As String 
Dim useDefaultUrl As Boolean 

Dim instance As New HubConnection(url, queryString, _
    useDefaultUrl)
public HubConnection(
    string url,
    string queryString,
    bool useDefaultUrl
)
public:
HubConnection(
    String^ url, 
    String^ queryString, 
    bool useDefaultUrl
)
new : 
        url:string * 
        queryString:string * 
        useDefaultUrl:bool -> HubConnection
public function HubConnection(
    url : String, 
    queryString : String, 
    useDefaultUrl : boolean
)

Parameters

  • queryString
    Type: System.String
    The query string data to pass to the server.
  • useDefaultUrl
    Type: System.Boolean
    Determines if the default "/signalr" path should be appended to the specified url.

See Also

Reference

HubConnection Class

HubConnection Overload

Microsoft.AspNet.SignalR.Client Namespace