Device Monitoring Studio Server - TODO
Download Device Monitoring Studio Server Hide this button

_IConnectionEvents Interface

This interface encapsulates two session-related events exposed by connection object. You implement this interface either directly or indirectly by binding to connection object events.

Declaration

// This interface is not available in scripting environment
public interface _IConnectionEvents : ${IDispatch}
{

    // Methods
    void ${OnSessionAdded}(${ISession} session);
    void ${OnSessionRemoved}(${ISession} session);
}
struct _IConnectionEvents : IDispatch
{

    // Methods
    HRESULT ${OnSessionAdded}(${ISession} session);
    HRESULT ${OnSessionRemoved}(${ISession} session);
};

_IConnectionEvents Methods

OnSessionAdded

// This method is not available in scripting environment
void OnSessionAdded(${ISession} session);
HRESULT OnSessionAdded(${ISession} session);
session
Reference to new session object.

This event is fired each time new session is created.

OnSessionRemoved

// This method is not available in scripting environment
void OnSessionRemoved(${ISession} session);
HRESULT OnSessionRemoved(${ISession} session);
session
Reference to a disconnected session object.

This event is fired when a session is disconnected.