VpnChannel.ActivityChange Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Not supported.
// Register
event_token ActivityChange(TypedEventHandler<VpnChannel, VpnChannelActivityEventArgs const&> const& handler) const;
// Revoke with event_token
void ActivityChange(event_token const* cookie) const;
// Revoke with event_revoker
VpnChannel::ActivityChange_revoker ActivityChange(auto_revoke_t, TypedEventHandler<VpnChannel, VpnChannelActivityEventArgs const&> const& handler) const;
public event TypedEventHandler<VpnChannel,VpnChannelActivityEventArgs> ActivityChange;
function onActivityChange(eventArgs) { /* Your code */ }
vpnChannel.addEventListener("activitychange", onActivityChange);
vpnChannel.removeEventListener("activitychange", onActivityChange);
- or -
vpnChannel.onactivitychange = onActivityChange;
Public Custom Event ActivityChange As TypedEventHandler(Of VpnChannel, VpnChannelActivityEventArgs)
Event Type
Windows requirements
App capabilities |
networkingVpnProvider
|