Establishes a connection to a Host Integrator server and creates a host session with the specified model. This version of ConnectToModel presents a user ID and a password, to establish authorization on the Host Integrator server, and also provides a set of model variables, to set upon connection.
[Visual Basic]
Overloads Public Sub ConnectToModel( _
ByVal server As String, _
ByVal modelName As String, _
ByVal userID As String, _
ByVal password As String, _
ByVal modelVariables As IDictionary _
)
Reasons for failure include:
Exception Type | Condition |
---|---|
HostIntegratorConnectorException | Thrown if already connected |
HostIntegratorChannelException | Thrown if the client connection attempt fails |
HostIntegratorTimeoutException | Thrown if the client connection times out waiting for a response from the VHI server |
HostIntegratorServerException | Thrown if the server refuses a client connection attempt |
HostIntegratorServerException | Thrown if the requested model or session is not available |
HostIntegratorServerException | Thrown if the host connection does not succeed |
HostIntegratorSession Class | HostIntegratorSession Members | WRQ.Verastream.HostIntegrator Namespace | HostIntegratorSession.ConnectToModel Overload List