The ConnectionId property is most often used to identify entries in application server log files. This is a read-only property.

For session-managed applications, the ConnectionId property returns a string containing a unique identifier for this connection.

For session-free applications, the ConnectionId property returns a string containing a unique identifier for the connection most recently used by the current thread. For example:

public string 
ConnectionId

The ConnectionId property returns null if the Application Service is not connected.