Share via


xSession Class

Gets information about Microsoft Dynamics AX sessions.

Syntax

class xSession extends Object

Run On

Called

Methods

  Method Description
Gg950665.pubmethod(en-us,AX.60).gif AOSName Retrieves the name of the Application Object Server (AOS) that is responsible for servicing the session.
Gg950665.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif clientComputerName Retrieves the network name of the client computer that is responsible for servicing the session.
Gg950665.pubmethod(en-us,AX.60).gif clientKind Retrieves the type of the client that is responsible for servicing the session.
Gg950665.pubmethod(en-us,AX.60).gif databaseSpid Retrieves a comma-separated list of active connection IDs.
Gg950665.pubmethod(en-us,AX.60).gif documentationLanguage Retrieves the language ID of the documentation that is shown for the session.
Gg950665.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif interfaceLanguage Retrieves the ID for the language that is used on menus and dialogs for the session.
Gg950665.pubmethod(en-us,AX.60).gif isWorkerThread Determines whether the session is a worker thread.
Gg950665.pubmethod(en-us,AX.60).gif loginDate Retrieves the date on which the user of the session logged on.
Gg950665.pubmethod(en-us,AX.60).gif loginDateTime
Gg950665.pubmethod(en-us,AX.60).gif loginTime Retrieves the time at which the user of the session logged on.
Gg950665.pubmethod(en-us,AX.60).gif masterSessionId Retrieves the master session ID for the session that the xSession object covers.
Gg950665.pubmethod(en-us,AX.60).gif new Instantiates the xSession object, either for current session or for the session ID passed in as a parameter. (Overrides the new Method.)
Gg950665.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif serverId
Gg950665.pubmethod(en-us,AX.60).gif sessionId Retrieves the session ID of the session that the xSession object covers.
Gg950665.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif terminate Terminates the session ID that the object was instantiated with.
Gg950665.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif userId Retrieves the user ID that this session is logged on with.
Gg950665.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg950665.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg950665.privmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::clientSetAutoUpdateRecVersion
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::currentRetryCount Counts the number of times a try block has been retried after a deadlock, an update conflict, or another exception.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::currentUnCheck
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::getDbSchema Retrieves the schema part of the database object name for the session.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::getIISObject Instantiates and returns a COM object for an IIS object.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::getSysTraceActive Enables you to determine whether system tracing is turned on for the session.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::getXRefAssembyTempFolder
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::isCLRSession
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::isUserPreferredTzSameAsLocalMachine
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::lastDuplicateKeyViolatingTable
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::lastUpdateConflictingTable Retrieves an instance of the table that most recently had an update conflict.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::maxSessionId Retrieves the maximum number of sessions that are permitted by the current license codes.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::numSession Retrieves the current number of registered sessions.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::pseudoBandwidth Determines whether bandwidth simulation is turned on for the session, and enables bandwidth simulation to be turned on or off.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::pseudoLatency Determines whether latency simulation is turned on for the session, and enables latency simulation to be turned on or off.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::pseudoSimMode Determines whether delay simulation is turned on for the session, and enables delay simulation to be turned on or off.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::reloadTableCollectionOnClient
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::removeAOC Removes the Application Object Server client-side cache (AOC) for the current session.
Gg950665.privmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::serverSetAutoUpdateRecVersion
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::setAutoUpdateRecVersion
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::setSysTraceActive Switches system tracing on or off.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::systemSessionId Retrieves the system session ID for the session that the xSession object covers.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::updateAOC Updates the Application Object Server client-side cache (AOC) for the current session.
Gg950665.pubmethod(en-us,AX.60).gif Gg950665.static(en-us,AX.60).gif ::xppCallStack Retrieves the current call stack.

Top

Remarks

To get information about the current session, create a new xSession session without parameters. The only way to get information about all active sessions (AOS only) is to traverse from session ID 1 to xSession.maxSessionId. The IDs are not an unbroken list, but will never exceed the maximum number of sessions as specified in the maxSessionId method.

Examples

The following example creates a new xSession object, and then uses it to find the name of the server for the current session.

xSession xSession; 
 
xSession = new xSession();   
// Prints the name of server for the current session. 
print xSession.AOSName();

Inheritance Hierarchy

Object Class
  xSession Class
    Session Class