Get client mode in MSD Axapta


 AOSSessionInfo aosSession;  
 Session session;  
 ;  
 session = new Session();  
 aosSession = new AOSSessionInfo(session.sessionId());  
 if (aosSession)  
 return aosSession.clientMode();