Share via


xSession.clientKind Method

Definition

Caution

This method is deprecated, use Global::hasGUI() to detect if an interactive client is present on the current session

Retrieves the type of the client that is responsible for servicing the session.

public:
 virtual Dynamics::AX::Application::ClientType clientKind();
[System.Obsolete("This method is deprecated, use Global::hasGUI() to detect if an interactive client is present on the current session")]
public virtual Dynamics.AX.Application.ClientType clientKind ();
[<System.Obsolete("This method is deprecated, use Global::hasGUI() to detect if an interactive client is present on the current session")>]
abstract member clientKind : unit -> Dynamics.AX.Application.ClientType
override this.clientKind : unit -> Dynamics.AX.Application.ClientType
Public Overridable Function clientKind () As ClientType

Returns

The type of the client.

Attributes

Remarks

The possible values are those in the ClientType system enumeration:

  • COMObject
  • Client
  • Server
  • WorkerThread

The following example prints the type of the client that is running the current session.

{ 
    xSession xSession; 
    xSession = new xSession(); 
    print xSession.clientKind(); 
    pause; 
}

Applies to