An NDoc Documented Class Library

HostIntegratorSession.ConnectToModel Method (String, String, String, String)

Establishes a connection to a Host Integrator server and creates a host session with the specified model.

public virtual void ConnectToModel(
   string server,
   string modelName,
   string userid,
   string password
);

Parameters

server
Specifies the name of the Host Integrator server. This value can be a DNS name or an IP address.
modelName
Specifies the name of a Host Integrator model.
userid
Specifies a user ID to present to the Host Integrator server.
password
Specifies a password to present to the Host Integrator server.

Remarks

Reasons for failure include:

Exceptions

Exception TypeCondition
HostIntegratorConnectorExceptionThrown if already connected
HostIntegratorChannelExceptionThrown if the client connection attempt fails
HostIntegratorTimeoutExceptionThrown if the client connection times out waiting for a response from the VHI server
HostIntegratorServerExceptionThrown if the server refuses a client connection attempt
HostIntegratorServerExceptionThrown if the requested model or session is not available
HostIntegratorServerExceptionThrown if the host connection does not succeed

See Also

HostIntegratorSession Class | WRQ.Verastream.HostIntegrator Namespace | HostIntegratorSession.ConnectToModel Overload List