Logout() Method
You use the Logout() method to make the client application sign out from MYOB Acumatica.
Syntax
public void Logout()
Usage Notes
For each call of the Login() method, you must call the
Logout() method after you finish your work with MYOB Acumatica to close the session. Therefore, when you are working with the web services API, we
recommend that you use the pattern that is shown in the following
code.
using
(
//Connect to the web services and sign in to MYOB Acumatica
Screen context = new Screen();
...
)
{
try
{
//Import, export, or submit data
...
}
finally
{
//Sign out from MYOB Acumatica
context.Logout();
}
}