Logoff method

Logs off from the current server.

Method
short Logoff( )
Description
Logs off from the current server.
Return Value
Refer to return codes.
See Also
Logon method

C/C + +

The following example performs a logoff.
 CArsOle * pArsCtrl;
 short rc;
   .
   .
  rc = pArsCtrl->Logoff( );
  if ( rc != ARS_OLE_RC_SUCCESS )
    ERROR;
   .
   .

Visual Basic

Dim rc As Integer

 .
 .

rc = ArsOle.Logoff ()
If rc <> ARS_OLE_RC_SUCCESS Then
   MsgBox "ERROR"
   End
End If

 .
 .