VpnChannel.ActivityStateChange Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Événement déclenché lorsque l’état d’activité du canal a changé. Utilisé par les plug-ins VPN pour déterminer si le canal est actif avec le trafic ou inactif.
// 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)
Type d'événement
Configuration requise pour Windows
Fonctionnalités de l’application |
networkingVpnProvider
|
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour