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( _ 
   ByRef ConnectProperties As ConnectProperties _ 
) As Boolean
C#
public bool Connect(
   ref ConnectProperties ConnectProperties
)
C++
public:
 bool Connect(
   ConnectProperties% ConnectProperties
) sealed 
J#
public bool Connect(
   ConnectProperties ConnectProperties
)
JScript
public  function Connect(
   ConnectProperties : ConnectProperties
) : bool

Parameters

ConnectProperties
Object containing the properties for connecting to the MVSP server.

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 ConnectProperties as new rocketsoftware.MVSP.ConnectProperties
 ConnectProperties.HostName = "localhost"
 ConnectProperties.HostPort = 9000
 ConnectProperties.UserName = "dm"
 ConnectProperties.UserPassword = ""
 ConnectProperties.SslConnect = True
 ConnectProperties.LicenseType = rocketsoftware.MVSP.Pick.eLicenseType.LicenseTypeUser
 Dim mvsp as new rocketsoftware.MVSP.Pick
 returncode = mvsp.Connect(ConnectProperties)
 

See Also