Compartilhar via


VpnChannel.ActivityStateChange Evento

Definição

Evento gerado quando o estado de atividade do canal é alterado. Usado por plug-ins VPN para determinar se o canal está ativo com tráfego ou ocioso.

// Register
event_token ActivityStateChange(TypedEventHandler<VpnChannel, VpnChannelActivityStateChangedArgs const&> const& handler) const;

// Revoke with event_token
void ActivityStateChange(event_token const* cookie) const;

// Revoke with event_revoker
VpnChannel::ActivityStateChange_revoker ActivityStateChange(auto_revoke_t, TypedEventHandler<VpnChannel, VpnChannelActivityStateChangedArgs const&> const& handler) const;
public event TypedEventHandler<VpnChannel,VpnChannelActivityStateChangedArgs> ActivityStateChange;
function onActivityStateChange(eventArgs) { /* Your code */ }
vpnChannel.addEventListener("activitystatechange", onActivityStateChange);
vpnChannel.removeEventListener("activitystatechange", onActivityStateChange);
- or -
vpnChannel.onactivitystatechange = onActivityStateChange;
Public Custom Event ActivityStateChange As TypedEventHandler(Of VpnChannel, VpnChannelActivityStateChangedArgs) 

Tipo de evento

Requisitos do Windows

Funcionalidades do aplicativo
networkingVpnProvider

Aplica-se a