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 (MultiConnectionConfig, Boolean)

Retrieves a ILiveViewMultiConnection based on the MultiConnectionConfig.

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 ILiveViewMultiConnection GetConnection(
    	MultiConnectionConfig cfg,
    	bool waitForConnection
    )

    Public Shared Function GetConnection ( _
    	cfg As MultiConnectionConfig, _
    	waitForConnection As Boolean _
    ) As ILiveViewMultiConnection

    public:
    static ILiveViewMultiConnection^ GetConnection(
    	MultiConnectionConfig^ cfg,
    	bool waitForConnection
    )

#### Parameters

cfg
  MultiConnectionConfig
  Configuration identifying the servers you want to connect to, along with flags describing how to connect

waitForConnection
  Boolean
  True if you want to wait until at least one connection succeeds.

#### Return Value

ILiveViewMultiConnection

# See Also

LiveViewConnectionFactory Class
GetConnection Overload
StreamBase.LiveView.API Namespace