The Logto function allows to client application to move between database accounts.


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

Syntax

Visual Basic (Declaration)
Public Function Logto( _ 
   ByVal accountName As String,  _ 
   ByVal password As String _ 
) As Boolean
C#
public bool Logto(
   string accountName,
   string password
)
C++
public:
 bool Logto(
   String accountName,
   String password
) sealed 
J#
public bool Logto(
   string accountName,
   string password
)
JScript
public  function Logto(
   accountName : String,
   password : String
) : bool

Parameters

accountName
is a string containing the account name that you wish to log to
password
is a string containing the password for the specified account

Return Value

True if the Logto was sucessfull

Remarks

The following example will connect to localhost on port 9000, logon as user dm with no password and logto the MVDEMO account

 Copy Code
 Dim returncode as boolean
 Dim mvsp as new rocketsoftware.MVSP.Pick
 returncode = mvsp.Connect("localhost",9000,"dm","")
 If returncode = True then
    returncode = mvsp.Logto("MVDEMO","")
 End if
 

See Also