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
LiveViewConnectionFactory..::GetConnection Method (ConnectionConfig)

Creates a new instance of a ILiveViewConnection.

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++ |

    public static ILiveViewConnection GetConnection(
    	ConnectionConfig cfg
    )

    Public Shared Function GetConnection ( _
    	cfg As ConnectionConfig _
    ) As ILiveViewConnection

    public:
    static ILiveViewConnection^ GetConnection(
    	ConnectionConfig^ cfg
    )

#### Parameters

cfg
  ConnectionConfig
  The configuration parameters to which to connect.

#### Return Value

The new connection.

# Exceptions

Exception | Condition
--- | ---
StreamBase.LiveView.API..::..LiveViewException | If the connection could not be created or a network connection error occurred.

# See Also

LiveViewConnectionFactory Class
GetConnection Overload
StreamBase.LiveView.API Namespace