DevicePicker.DisconnectButtonClicked 事件

定义

指示用户单击或点击选取器中设备的断开连接按钮。

// 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) 

事件类型

适用于