DevicePicker.DisconnectButtonClicked 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.
Indicates that the user clicked or tapped the disconnect button for a device in the picker.
// Register
event_token DisconnectButtonClicked(TypedEventHandler<DevicePicker, DeviceDisconnectButtonClickedEventArgs const&> const& handler) const;
// Revoke with event_token
void DisconnectButtonClicked(event_token const* cookie) const;
// Revoke with event_revoker
DevicePicker::DisconnectButtonClicked_revoker DisconnectButtonClicked(auto_revoke_t, TypedEventHandler<DevicePicker, DeviceDisconnectButtonClickedEventArgs const&> const& handler) const;
public event TypedEventHandler<DevicePicker,DeviceDisconnectButtonClickedEventArgs> DisconnectButtonClicked;
function onDisconnectButtonClicked(eventArgs) { /* Your code */ }
devicePicker.addEventListener("disconnectbuttonclicked", onDisconnectButtonClicked);
devicePicker.removeEventListener("disconnectbuttonclicked", onDisconnectButtonClicked);
- or -
devicePicker.ondisconnectbuttonclicked = onDisconnectButtonClicked;
Public Custom Event DisconnectButtonClicked As TypedEventHandler(Of DevicePicker, DeviceDisconnectButtonClickedEventArgs)