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 licEnterprise As Boolean _ ) As Boolean |
C# |
---|
public bool Connect( string hostName, int hostPort, string userName, string userPassword, bool sslConnect, bool licEnterprise ) |
C++ |
---|
public: bool Connect( String hostName, int hostPort, String userName, String userPassword, bool sslConnect, bool licEnterprise ) sealed |
J# |
---|
public bool Connect( string hostName, int hostPort, string userName, string userPassword, bool sslConnect, bool licEnterprise ) |
JScript |
---|
public
function Connect( hostName : String, hostPort : int, userName : String, userPassword : String, sslConnect : bool, licEnterprise : bool ) : 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)
- licEnterprise
- is a boolean indicating use of enterprise licensing scheme
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. Copy Code
Dim returncode as boolean
Dim mvsp as new rocketsoftware.MVSP.Pick
returncode = mvsp.Connect("localhost",9000,"dm","",True,False)