Partilhar via


SmsDevice.SmsDeviceStatusChanged Evento

Definição

Define um manipulador de eventos a ser chamado quando o status do dispositivo SMS é alterado.

public:
 virtual event SmsDeviceStatusChangedEventHandler ^ SmsDeviceStatusChanged;
/// [add: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
// Register
event_token SmsDeviceStatusChanged(SmsDeviceStatusChangedEventHandler const& handler) const;

// Revoke with event_token
void SmsDeviceStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
SmsDevice::SmsDeviceStatusChanged_revoker SmsDeviceStatusChanged(auto_revoke_t, SmsDeviceStatusChangedEventHandler const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
// Register
event_token SmsDeviceStatusChanged(SmsDeviceStatusChangedEventHandler const& handler) const;

// Revoke with event_token
void SmsDeviceStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
SmsDevice::SmsDeviceStatusChanged_revoker SmsDeviceStatusChanged(auto_revoke_t, SmsDeviceStatusChangedEventHandler const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
[remove: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
public event SmsDeviceStatusChangedEventHandler SmsDeviceStatusChanged;
[add: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public event SmsDeviceStatusChangedEventHandler SmsDeviceStatusChanged;
function onSmsDeviceStatusChanged(eventArgs) { /* Your code */ }
smsDevice.addEventListener("smsdevicestatuschanged", onSmsDeviceStatusChanged);
smsDevice.removeEventListener("smsdevicestatuschanged", onSmsDeviceStatusChanged);
- or -
smsDevice.onsmsdevicestatuschanged = onSmsDeviceStatusChanged;
Public Custom Event SmsDeviceStatusChanged As SmsDeviceStatusChangedEventHandler Implements SmsDeviceStatusChanged

Tipo de evento

Implementações

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
cellularMessaging sms

Aplica-se a