SmsDevice2.DeviceStatusChanged Evento
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Establece un controlador de eventos al que se llamará cuando cambie el estado del dispositivo SMS.
// Register
event_token DeviceStatusChanged(TypedEventHandler<SmsDevice2, IInspectable const&> const& handler) const;
// Revoke with event_token
void DeviceStatusChanged(event_token const* cookie) const;
// Revoke with event_revoker
SmsDevice2::DeviceStatusChanged_revoker DeviceStatusChanged(auto_revoke_t, TypedEventHandler<SmsDevice2, IInspectable const&> const& handler) const;
public event TypedEventHandler<SmsDevice2,object> DeviceStatusChanged;
function onDeviceStatusChanged(eventArgs) { /* Your code */ }
smsDevice2.addEventListener("devicestatuschanged", onDeviceStatusChanged);
smsDevice2.removeEventListener("devicestatuschanged", onDeviceStatusChanged);
- or -
smsDevice2.ondevicestatuschanged = onDeviceStatusChanged;
Public Custom Event DeviceStatusChanged As TypedEventHandler(Of SmsDevice2, Object)
Tipo de evento
TypedEventHandler<SmsDevice2,IInspectable>
Requisitos de Windows
Características de aplicaciones |
cellularMessaging
sms
|