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 _ ) As Boolean |
C# |
---|
public bool Connect( string hostName, int hostPort, string userName, string userPassword ) |
C++ |
---|
public: bool Connect( String hostName, int hostPort, String userName, String userPassword ) sealed |
J# |
---|
public bool Connect( string hostName, int hostPort, string userName, string userPassword ) |
JScript |
---|
public
function Connect( hostName : String, hostPort : int, userName : String, userPassword : String ) : 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
Return Value
True is a connection has been created
Remarks
Sets statusMessage and statusCode properties Copy Code
Dim returncode as boolean
Dim mvsp as new rocketsoftware.MVSP.Pick
returncode = mvsp.Connect("localhost",9000,"dm","")