![](../icons/collapse_all.gif)
C# | Visual Basic | Visual C++ |
void Connect()
Sub Connect
void Connect()
![](../icons/collapse_all.gif)
Before calling Connect() you must first set an ICredentialsProvider in order to supply the server with user authentication information. Set the ICredentialsProvider by setting the CredentialsProvider property of the StreamLink object.
If any error occurs whilst retrieving the authentication information from the ICredentialsProvider then the StreamLink object’s IExceptionHandler is informed, and a CredentialRetrievalFailed event is raised and passed to all registered IConnectionListener objects.
If Connect() is called after a Disconnect()()(), the StreamLink library will reconnect to the Liberator and will re-request any subscriptions that have not been Unsubscribed by the application code.