This interface encapsulates two events generated by monitoring site object. You implement this interface either directly or indirectly by binding to monitoring site object events.
// This interface is not available in scripting environment
public interface _IMonitoringAdminEvents : ${IDispatch}
{
// Methods
void ${OnConnectionAdded}(${IConnection} connection);
void ${OnConnectionRemoved}(${IConnection} connection);
}
struct _IMonitoringAdminEvents : IDispatch
{
// Methods
HRESULT ${OnConnectionAdded}(${IConnection} connection);
HRESULT ${OnConnectionRemoved}(${IConnection} connection);
};
// This method is not available in scripting environment
void OnConnectionAdded(${IConnection} connection);
HRESULT OnConnectionAdded(${IConnection} connection);
connection
This event is generated when new connection is established.
// This method is not available in scripting environment
void OnConnectionRemoved(${IConnection} connection);
HRESULT OnConnectionRemoved(${IConnection} connection);
connection
This event is generated when the connection is disconnected.