Collapse All Expand All | Language Filter: C#Language Filter: Visual Basic Language Filter: Visual C++ C# Visual Basic Visual C++ | See Also
StreamBase Client API
ConnectionConfig Constructor (String, EventHandler<(Of <(<'ConnectionEventArgs>)>)>)

Creates an instance using the supplied URI, no credentials and the supplied connection event handler.

# Remarks

DEPRECATED: Please use ConnectionConfig(LiveViewURI uri, EventHandler<ConnectionEventArgs> handler) instead.

Namespace: StreamBase.LiveView.API
Assembly: StreamBase.LiveView.API (in StreamBase.LiveView.API.dll) Version: 10.3.0.4 (10.3.0.4)

# Syntax

| C# |  |  | Visual Basic |  |  | Visual C++ |

    [ObsoleteAttribute("Deprecated. Please use ConnectionConfig(LiveViewURI uri, EventHandler<ConnectionEventArgs> handler) instead.")]
    public ConnectionConfig(
    	string uri,
    	EventHandler<ConnectionEventArgs> handler
    )

    <ObsoleteAttribute("Deprecated. Please use ConnectionConfig(LiveViewURI uri, EventHandler<ConnectionEventArgs> handler) instead.")> _
    Public Sub New ( _
    	uri As String, _
    	handler As EventHandler(Of ConnectionEventArgs) _
    )

    public:
    [ObsoleteAttribute(L"Deprecated. Please use ConnectionConfig(LiveViewURI uri, EventHandler<ConnectionEventArgs> handler) instead.")]
    ConnectionConfig(
    	String^ uri,
    	EventHandler<ConnectionEventArgs^>^ handler
    )

#### Parameters

uri
  String
  The URI to use when connecting to the LiveView server. Valid URIs must start with "lv://" and will default to port 10080 if none is specified.

handler
  EventHandler<(Of <(<'ConnectionEventArgs>)>)>
  The connection event handler to use.

# Exceptions

Exception | Condition
--- | ---
StreamBase.LiveView.API..::..LiveViewURIException | If the given URI is malformed.

# See Also

ConnectionConfig Class
ConnectionConfig Overload
StreamBase.LiveView.API Namespace