This function is used to connect to the MVSP Server.


Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)

Syntax

Visual Basic (Declaration)
Public Function Connect( _ 
   ByVal hostName As String,  _ 
   ByVal hostPort As Integer,  _ 
   ByVal userName As String,  _ 
   ByVal userPassword As String,  _ 
   ByVal sslConnect As Boolean,  _ 
   ByVal licenseType As Pick.eLicenseType _ 
) As Boolean
C#
public bool Connect(
   string hostName,
   int hostPort,
   string userName,
   string userPassword,
   bool sslConnect,
   Pick.eLicenseType licenseType
)
C++
public:
 bool Connect(
   String hostName,
   int hostPort,
   String userName,
   String userPassword,
   bool sslConnect,
   Pick.eLicenseType licenseType
) sealed 
J#
public bool Connect(
   string hostName,
   int hostPort,
   string userName,
   string userPassword,
   bool sslConnect,
   Pick.eLicenseType licenseType
)
JScript
public  function Connect(
   hostName : String,
   hostPort : int,
   userName : String,
   userPassword : String,
   sslConnect : bool,
   licenseType : Pick.eLicenseType
) : bool

Parameters

hostName
is a string containing the hostname or TCP/IP address to connect to
hostPort
is an integer containing the TCP/IP socket that the host server is listening on
userName
is a string containing the user name that you wish to connect as. The username must be an enabled MVSP user.
userPassword
is a string containing the password for the supplied username
sslConnect
is a boolean indicating use of SSL connection (true) or telnet connection (false)
licenseType
is an enumeration containing the licensing scheme (user, enterprise, or connection pool)

Return Value

True is a connection has been created

Remarks

Sets statusMessage and statusCode properties
When using Enterprise licensing the d3iphelper.dll must be installed in the same directory as rocketmvsp.dll.
The following example will connect using SSL to localhost on port 9000 and logon as user dm with no password

 Copy Code
 Dim returncode as boolean
 Dim mvsp as new rocketsoftware.MVSP.Pick
 returncode = mvsp.Connect("localhost",9000,"dm","",True,rocketsoftware.MVSP.Pick.eLicenseType.LicenseTypeUser)
 
'''

See Also